Skip to content

Commit 7020610

Browse files
committed
Implement new constants
1 parent 182c9f7 commit 7020610

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugwise/smile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
DOMAIN_OBJECTS,
2323
LOCATIONS,
2424
LOGGER,
25+
MAX_SETPOINT,
26+
MIN_SETPOINT,
2527
MODULES,
2628
NOTIFICATIONS,
2729
RULES,
@@ -67,9 +69,9 @@ def update_for_cooling(self, devices: dict[str, DeviceData]) -> None:
6769
if self.anna_cooling_enabled:
6870
sensors = device["sensors"]
6971
sensors["setpoint_low"] = sensors["setpoint"]
70-
sensors["setpoint_high"] = float(40)
72+
sensors["setpoint_high"] = MAX_SETPOINT
7173
if self._anna_cooling_active:
72-
sensors["setpoint_low"] = float(0)
74+
sensors["setpoint_low"] = MIN_SETPOINT
7375
sensors["setpoint_high"] = sensors["setpoint"]
7476
if self._sched_setpoints is not None:
7577
sensors["setpoint_low"] = self._sched_setpoints[0]

0 commit comments

Comments
 (0)