Skip to content

Commit

Permalink
ADD new set #77
Browse files Browse the repository at this point in the history
* The sets really needs to be handled better!
  • Loading branch information
xZetsubou authored Dec 19, 2023
1 parent d99c6f3 commit fc6476b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion custom_components/localtuya/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
HVACMode.HEAT: "Manual",
HVACMode.AUTO: "Program",
},
"freeze/manual/auto": {
HVACMode.COOL: "freeze",
HVACMode.HEAT: "manual",
HVACMode.AUTO: "auto",
},
"auto/cold/hot/wet": {
HVACMode.AUTO: "auto",
HVACMode.COOL: "cold",
Expand Down Expand Up @@ -268,7 +273,7 @@ def hvac_modes(self):
if not self.has_config(CONF_HVAC_MODE_DP):
return None
modes = list(self._conf_hvac_mode_set)
if self._config.get(CONF_HVAC_ADD_OFF, True):
if self._config.get(CONF_HVAC_ADD_OFF, True) and HVACMode.OFF not in modes:
modes.append(HVACMode.OFF)
return modes

Expand Down

0 comments on commit fc6476b

Please # to comment.