Skip to content

Commit 599427f

Browse files
committed
Return rounded float(0)
1 parent 83040e4 commit 599427f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def format_measure(measure: str, unit: str) -> float | int:
176176
elif abs(float_measure) >= 10 and abs(float_measure) < 100:
177177
result = float(f"{round(float_measure, 1):.1f}")
178178
elif abs(float_measure) >= 100:
179-
result = int(round(float_measure))
179+
result = float(f"{round(float_measure, 0):.0f}")
180180

181181
return result
182182

0 commit comments

Comments
 (0)