Skip to content

Commit 04bff05

Browse files
authored
Corrected BUG (#1197)
#1085
1 parent dcb30aa commit 04bff05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zhaquirks/elko/smart_super_thermostat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ async def write_attributes(self, attributes, manufacturer=None):
9595
"""Override writes to thermostat attributes."""
9696
if "system_mode" in attributes:
9797
val = attributes.get("system_mode")
98+
night_lowering = 0
9899
if val == Thermostat.SystemMode.Off:
99100
device_on = 0
100101
elif val == Thermostat.SystemMode.Auto:
101102
device_on = 1
102103
night_lowering = 1
103104
elif val == Thermostat.SystemMode.Heat:
104105
device_on = 1
105-
night_lowering = 0
106106
attributes["device_on"] = device_on
107107
attributes["night_lowering"] = night_lowering
108108

0 commit comments

Comments
 (0)