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 b848bf1 commit 1843918Copy full SHA for 1843918
plugwise/helper.py
@@ -143,7 +143,7 @@ def types_finder(data) -> set:
143
return types
144
145
146
-def power_data_local_format(attrs, key_string, val) -> float | int | str:
+def power_data_local_format(attrs, key_string, val) -> float | int | bool:
147
"""Format power data."""
148
f_val = format_measure(val, attrs[ATTR_UNIT_OF_MEASUREMENT])
149
# Format only HOME_MEASUREMENT POWER_WATT values, do not move to util-format_meaure function!
0 commit comments