Skip to content

Commit 478e5a2

Browse files
committed
Fix setpoint_low/_high not updating
1 parent a24c53b commit 478e5a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plugwise/smile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ def update_for_cooling(self, devices: dict[str, DeviceData]) -> None:
8383
"setpoint_low": min_setpoint,
8484
"setpoint_high": thermostat["setpoint"],
8585
}
86-
if "setpoint_low" not in sensors:
86+
if "setpoint" in sensors:
8787
sensors.pop("setpoint")
88-
sensors["setpoint_low"] = temp_dict["setpoint_low"]
89-
sensors["setpoint_high"] = temp_dict["setpoint_high"]
88+
sensors["setpoint_low"] = temp_dict["setpoint_low"]
89+
sensors["setpoint_high"] = temp_dict["setpoint_high"]
9090
thermostat.pop("setpoint")
9191
temp_dict.update(thermostat)
9292
device["thermostat"] = temp_dict

0 commit comments

Comments
 (0)