diff --git a/homeassistant/components/shelly/climate.py b/homeassistant/components/shelly/climate.py index 9ac603a7fb0601..7cc0027bbaf212 100644 --- a/homeassistant/components/shelly/climate.py +++ b/homeassistant/components/shelly/climate.py @@ -420,7 +420,6 @@ def _handle_coordinator_update(self) -> None: class RpcClimate(ShellyRpcEntity, ClimateEntity): """Entity that controls a thermostat on RPC based Shelly devices.""" - _attr_hvac_modes = [HVACMode.OFF] _attr_icon = "mdi:thermostat" _attr_max_temp = RPC_THERMOSTAT_SETTINGS["max"] _attr_min_temp = RPC_THERMOSTAT_SETTINGS["min"] @@ -436,9 +435,9 @@ def __init__(self, coordinator: ShellyRpcCoordinator, id_: int) -> None: "type", "heating" ) if self._thermostat_type == "cooling": - self._attr_hvac_modes.append(HVACMode.COOL) + self._attr_hvac_modes = [HVACMode.OFF, HVACMode.COOL] else: - self._attr_hvac_modes.append(HVACMode.HEAT) + self._attr_hvac_modes = [HVACMode.OFF, HVACMode.HEAT] @property def target_temperature(self) -> float | None: