We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4c987f commit 4851d67Copy full SHA for 4851d67
plugwise/util.py
@@ -93,7 +93,8 @@ def format_measure(measure, unit):
93
measure = int(measure)
94
except ValueError:
95
if unit == PERCENTAGE and float(measure) > 0:
96
- measure = int(float(measure) * 100)
+ return = int(float(measure) * 100)
97
+
98
if unit == ENERGY_KILO_WATT_HOUR:
99
measure = float(measure) / 1000
100
try:
0 commit comments