Skip to content

Commit

Permalink
Fix preset mode changes
Browse files Browse the repository at this point in the history
Hold and Home preset modes should now function properly
  • Loading branch information
mww012 committed Jun 28, 2021
1 parent 3985333 commit b1a4ec3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/infinitive/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ def set_hvac_mode(self, hvac_mode):

def set_preset_mode(self, mode):
"""Set new preset mode."""
if mode == "hold":
if mode == PRESET_HOLD:
self._inf_device.set_hold(True)
elif mode == "home":
elif mode == PRESET_HOME:
self._inf_device.set_hold(False)

0 comments on commit b1a4ec3

Please sign in to comment.