mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Fix Radiothermostat hold value updates (#53656)
This commit is contained in:
parent
0f8a286cc7
commit
4f8c799610
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user