From 4f8c799610eba38bb5f4cdbdac0987e8742b81cd Mon Sep 17 00:00:00 2001 From: Vinny Furia Date: Mon, 2 Aug 2021 06:57:10 -0600 Subject: [PATCH] Fix Radiothermostat hold value updates (#53656) --- homeassistant/components/radiotherm/climate.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/homeassistant/components/radiotherm/climate.py b/homeassistant/components/radiotherm/climate.py index aad6bf3989e..fc108af56a7 100644 --- a/homeassistant/components/radiotherm/climate.py +++ b/homeassistant/components/radiotherm/climate.py @@ -80,6 +80,8 @@ PRESET_MODE_TO_CODE = {"home": 0, "alternate": 1, "away": 2, "holiday": 3} CODE_TO_PRESET_MODE = {0: "home", 1: "alternate", 2: "away", 3: "holiday"} +CODE_TO_HOLD_STATE = {0: False, 1: True} + def round_temp(temperature): """Round a temperature to the resolution of the thermostat. @@ -300,6 +302,7 @@ class RadioThermostat(ClimateEntity): self._fstate = CODE_TO_FAN_STATE[data["fstate"]] self._tmode = CODE_TO_TEMP_MODE[data["tmode"]] self._tstate = CODE_TO_TEMP_STATE[data["tstate"]] + self._hold_set = CODE_TO_HOLD_STATE[data["hold"]] self._current_operation = self._tmode if self._tmode == HVAC_MODE_COOL: