Skip to content

Commit cfdfebb

Browse files
committed
Don't add "empty" temperature_offset dicts
1 parent 87361ee commit cfdfebb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugwise/helper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,8 +933,9 @@ def _get_actuator_functionalities(self, xml: etree, data: DeviceData) -> None:
933933
if (function := xml.find(locator)) is not None:
934934
if function.text == "nil":
935935
break
936-
937936
temp_dict[key] = format_measure(function.text, TEMP_CELSIUS) # type: ignore [literal-required]
937+
else:
938+
temp_dict = {}
938939

939940
if temp_dict:
940941
# If domestic_hot_water_setpoint is present as actuator,

0 commit comments

Comments
 (0)