Skip to content

Commit 0dfc527

Browse files
committed
Change to anna_no_cooling_enabled
1 parent a03458c commit 0dfc527

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

plugwise/helper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ def __init__(self) -> None:
290290
self._appliances: etree
291291
self._allowed_modes: list[str] = []
292292
self._adam_cooling_enabled = False
293-
self._anna_cooling_enabled: bool | None = None
294293
self._anna_cooling_present = False
295294
self._cooling_enabled = False
296295
self._cooling_activation_outdoor_temp: float
@@ -312,6 +311,7 @@ def __init__(self) -> None:
312311
self._stretch_v3 = False
313312
self._thermo_locs: dict[str, ThermoLoc] = {}
314313

314+
self.anna_no_cooling_enabled = True
315315
self.gateway_id: str
316316
self.gw_data: GatewayData = {}
317317
self.gw_devices: dict[str, DeviceData] = {}
@@ -852,9 +852,9 @@ def _get_appliance_data(self, d_id: str) -> DeviceData:
852852
if "temperature" in data:
853853
data.pop("heating_state", None)
854854

855-
# Use cooling_enabled to set self._anna_cooling_active, then remove
855+
# Use cooling_enabled to set self.anna_no_cooling_enabled to False, then remove
856856
if "cooling_enabled" in data:
857-
self._anna_cooling_enabled = data.get("cooling_enabled")
857+
self.anna_no_cooling_enabled = False
858858
data.pop("cooling_enabled", None)
859859

860860
return data

plugwise/smile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def get_all_devices(self) -> None:
109109

110110
# Anna: indicate possible active heating/cooling operation-mode
111111
# Actual ongoing heating/cooling is shown via heating_state/cooling_state
112-
if self._anna_cooling_present and self._anna_cooling_enabled is None:
112+
if self._anna_cooling_present and self.anna_no_cooling_enabled:
113113
if (
114114
not self._cooling_enabled
115115
and self._outdoor_temp > self._cooling_activation_outdoor_temp
@@ -192,7 +192,7 @@ def _device_data_climate(
192192
if sched_setpoints is None:
193193
device_data["setpoint_low"] = device_data["setpoint"]
194194
device_data["setpoint_high"] = float(40)
195-
if self._cooling_enabled or self._anna_cooling_enabled:
195+
if self._cooling_enabled or not self.anna_no_cooling_enabled:
196196
device_data["setpoint_low"] = float(0)
197197
device_data["setpoint_high"] = device_data["setpoint"]
198198
else:

0 commit comments

Comments
 (0)