From b1a4ec3b84fcf80e064a3e0d90f8be292b326a14 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Mon, 28 Jun 2021 08:44:32 -0500 Subject: [PATCH] Fix preset mode changes Hold and Home preset modes should now function properly --- custom_components/infinitive/climate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/custom_components/infinitive/climate.py b/custom_components/infinitive/climate.py index 3b66489..26f685c 100644 --- a/custom_components/infinitive/climate.py +++ b/custom_components/infinitive/climate.py @@ -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)