Skip to content

Commit 353bf3e

Browse files
committed
Add clarifying comment
1 parent 35fbcd0 commit 353bf3e

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
@@ -156,6 +156,7 @@ def format_measure(measure: str, unit: str) -> float | int:
156156
result: float | int = 0
157157
try:
158158
result = int(measure)
159+
# Return for instance 20 (degrees) as 20.0
159160
if unit == TEMP_CELSIUS:
160161
result = float(measure)
161162
except ValueError:

0 commit comments

Comments
 (0)