Skip to content

Commit e28120d

Browse files
committed
Change anna-cooling-enabled, add anna_cooling_enabled var
To show the cooling active state
1 parent 85c6c2e commit e28120d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

plugwise/helper.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ def __init__(self) -> None:
311311
self._stretch_v3 = False
312312
self._thermo_locs: dict[str, ThermoLoc] = {}
313313

314-
self.anna_no_cooling_enabled: bool | None = None
314+
self.anna_cooling_enabled = False
315+
self.anna_cool_ena_indication: bool | None = None
315316
self.gateway_id: str
316317
self.gw_data: GatewayData = {}
317318
self.gw_devices: dict[str, DeviceData] = {}
@@ -854,9 +855,10 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
854855

855856
# Use cooling_enabled to set self.anna_no_cooling_enabled to False, then remove
856857
if self._anna_cooling_present:
857-
self.anna_no_cooling_enabled = True
858+
self.anna_cool_ena_indication = False
858859
if "cooling_enabled" in data:
859-
self.anna_no_cooling_enabled = False
860+
self.anna_cool_ena_indication = True
861+
self.anna_cooling_enabled = data["cooling_enabled"]
860862
data.pop("cooling_enabled", None)
861863

862864
return data

0 commit comments

Comments
 (0)