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 6488ec9 commit 898ccf8Copy full SHA for 898ccf8
plugwise/util.py
@@ -157,6 +157,7 @@ def format_measure(measure: str, unit: str) -> float | int:
157
try:
158
result = int(measure)
159
if unit == TEMP_CELSIUS:
160
+ # Return for instance 20 (degrees) as 20.0
161
result = float(measure)
162
except ValueError:
163
float_measure = float(measure)
0 commit comments