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