Skip to content

Commit 7d9a1df

Browse files
author
Bouwe Westerdijk
committed
Add back setpoint* to sensor-dict
These should not have been removed
1 parent d0b1da2 commit 7d9a1df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugwise/smile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def update_for_cooling(self, devices: dict[str, DeviceData]) -> None:
6969
if self.elga_cooling_enabled:
7070
# Replace setpoint with setpoint_high/_low
7171
thermostat = device["thermostat"]
72+
sensors = device["sensors"]
7273
max_setpoint = MAX_SETPOINT
7374
min_setpoint = MIN_SETPOINT
7475
if self._sched_setpoints is not None:
@@ -87,6 +88,8 @@ def update_for_cooling(self, devices: dict[str, DeviceData]) -> None:
8788
thermostat.pop("setpoint")
8889
temp_dict.update(thermostat)
8990
device["thermostat"] = temp_dict
91+
sensors.pop("setpoint")
92+
sensors.update(temp_dict)
9093

9194
# For Adam + on/off cooling, modify heating_state and cooling_state
9295
# based on provided info by Plugwise

0 commit comments

Comments
 (0)