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 84b7b3b commit 9e99effCopy full SHA for 9e99eff
plugwise/data.py
@@ -160,9 +160,10 @@ def _get_location_data(self, loc_id: str) -> GwEntityData:
160
"""
161
zone = self._zones[loc_id]
162
data = self._get_zone_data(loc_id)
163
- if ctrl_state := self._control_state(loc_id) and str(control_state) in ("cooling", "heating", "preheating"):
164
- data["control_state"] = str(ctrl_state)
165
- self._count += 1
+ if ctrl_state := self._control_state(loc_id):
+ if str(ctrl_state) in ("cooling", "heating", "preheating"):
+ data["control_state"] = str(ctrl_state)
166
+ self._count += 1
167
else:
168
data["control_state"] = "idle"
169
self._count += 1
0 commit comments