Skip to content

Commit

Permalink
Update climate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
andyxpert authored Dec 8, 2024
1 parent 509397c commit 033e821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/better_thermostat/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1119,10 +1119,10 @@ def hvac_action(self):
if self.bt_target_temp is not None and self.cur_temp is not None:
if self.hvac_mode == HVACMode.OFF:
self.attr_hvac_action = HVACAction.OFF
elif self.bt_target_temp > self.cur_temp and self.window_open is False:
elif self.bt_target_temp > self.cur_temp + self.tolerance and self.window_open is False:
self.attr_hvac_action = HVACAction.HEATING
elif (
self.bt_target_temp > self.cur_temp
self.bt_target_temp > self.cur_temp + self.tolerance
and self.window_open is False
and self.bt_hvac_mode is not HVACMode.OFF
):
Expand Down

0 comments on commit 033e821

Please sign in to comment.