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 83040e4 commit 599427fCopy full SHA for 599427f
plugwise/util.py
@@ -176,7 +176,7 @@ def format_measure(measure: str, unit: str) -> float | int:
176
elif abs(float_measure) >= 10 and abs(float_measure) < 100:
177
result = float(f"{round(float_measure, 1):.1f}")
178
elif abs(float_measure) >= 100:
179
- result = int(round(float_measure))
+ result = float(f"{round(float_measure, 0):.0f}")
180
181
return result
182
0 commit comments