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 8140b3f commit fcf9661Copy full SHA for fcf9661
plugwise/helper.py
@@ -105,8 +105,10 @@ def _get_actuator_functionalities(xml: etree) -> DeviceData:
105
for key in LIMITS:
106
locator = f'.//actuator_functionalities/thermostat_functionality[type="{item}"]/{key}'
107
if (function := xml.find(locator)) is not None:
108
- if function.text != "nil":
109
- temp_dict.update({key: format_measure(function.text, TEMP_CELSIUS)})
+ if function.text == "nil":
+ break
110
+
111
+ temp_dict.update({key: format_measure(function.text, TEMP_CELSIUS)})
112
113
if temp_dict:
114
data[item] = temp_dict # type: ignore [literal-required]
0 commit comments