Skip to content

Commit 82ad2fc

Browse files
authored
avm/Fritz counter: fix type of imported to float (#3013)
1 parent 74823e6 commit 82ad2fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/modules/devices/avm/avm/counter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def update(self, deviceListElementTree: Element):
3434
if voltageInfo is not None:
3535
voltages = [float(voltageInfo.text)/1000, 0, 0]
3636
# AVM returns Wh
37-
imported = powermeterBlock.find("energy").text
37+
imported = float(powermeterBlock.find("energy").text)
3838

3939
counter_state = CounterState(
4040
imported=imported,

0 commit comments

Comments
 (0)