Skip to content

Commit fbb71ff

Browse files
committed
Fix once more
1 parent 517f6d5 commit fbb71ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugwise/data.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@ def _get_location_data(self, loc_id: str) -> GwEntityData:
166166
if str(ctrl_state) in ("cooling", "heating", "preheating"):
167167
data["control_state"] = str(ctrl_state)
168168
self._count += 1
169+
else:
170+
data["control_state"] = "idle"
171+
# control_state not present in regulation+mode off (issue #776)
169172
elif self.smile_version >= version.parse("3.2.0"):
170173
data["control_state"] = "idle"
171174
self._count += 1

0 commit comments

Comments
 (0)