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 14578c7 commit 84b7b3bCopy full SHA for 84b7b3b
plugwise/data.py
@@ -160,8 +160,11 @@ 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):
164
- data["control_state"] = ctrl_state
+ if ctrl_state := self._control_state(loc_id) and str(control_state) in ("cooling", "heating", "preheating"):
+ data["control_state"] = str(ctrl_state)
165
+ self._count += 1
166
+ else:
167
+ data["control_state"] = "idle"
168
self._count += 1
169
170
# Thermostat data (presets, temperatures etc)
0 commit comments