We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8875307 commit 714cd08Copy full SHA for 714cd08
custom_components/plugwise/climate.py
@@ -124,8 +124,8 @@ def __init__(
124
gateway_id: str = coordinator.api.gateway_id
125
self._gateway_data = coordinator.data[gateway_id]
126
schedule = self.device.get("select_schedule")
127
- if schedule is not None or schedule != NONE or schedule != "off":
128
- self._last_active_schedule = self.device["select_schedule"]
+ if schedule is not None and (schedule != NONE or schedule != "off"):
+ self._last_active_schedule = schedule
129
self._homekit_enabled = homekit_enabled # pw-beta homekit emulation
130
131
self._location = device_id
0 commit comments