Skip to content

Commit 898ccf8

Browse files
committed
Add comment
1 parent 6488ec9 commit 898ccf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugwise/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def format_measure(measure: str, unit: str) -> float | int:
157157
try:
158158
result = int(measure)
159159
if unit == TEMP_CELSIUS:
160+
# Return for instance 20 (degrees) as 20.0
160161
result = float(measure)
161162
except ValueError:
162163
float_measure = float(measure)

0 commit comments

Comments
 (0)