Skip to content

Commit a8eb919

Browse files
committed
Save TODO
1 parent ff6232e commit a8eb919

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

plugwise/data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,13 +166,14 @@ 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:
169+
if str(ctrl_state) == "off":
170170
data["control_state"] = "idle"
171171
self._count += 1
172172
# control_state not present in regulation+mode off (issue #776)
173173
elif self.smile_version >= version.parse("3.2.0"):
174174
data["control_state"] = "idle"
175175
self._count += 1
176+
# TODO: add testcase with regulation_mode off and control_state key not present
176177

177178
# Thermostat data (presets, temperatures etc)
178179
self._climate_data(loc_id, zone, data)

plugwise/helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def __init__(self) -> None:
259259
self.smile_model_id: str | None
260260
self.smile_name: str
261261
self.smile_type: str
262+
self.smile_version: str
262263
self.smile_zigbee_mac_address: str | None
263264
self.therms_with_offset_func: list[str] = []
264265
self._zones: dict[str, GwEntityData] = {}

0 commit comments

Comments
 (0)