Add new climate feature flags to radiotherm (#109466)
parent
fbb7c9003f
commit
1fba47fc8e
|
@ -106,6 +106,7 @@ class RadioThermostat(RadioThermostatEntity, ClimateEntity):
|
|||
_attr_temperature_unit = UnitOfTemperature.FAHRENHEIT
|
||||
_attr_precision = PRECISION_HALVES
|
||||
_attr_name = None
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(self, coordinator: RadioThermUpdateCoordinator) -> None:
|
||||
"""Initialize the thermostat."""
|
||||
|
@ -113,7 +114,10 @@ class RadioThermostat(RadioThermostatEntity, ClimateEntity):
|
|||
self._attr_unique_id = self.init_data.mac
|
||||
self._attr_fan_modes = CT30_FAN_OPERATION_LIST
|
||||
self._attr_supported_features = (
|
||||
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.FAN_MODE
|
||||
ClimateEntityFeature.TARGET_TEMPERATURE
|
||||
| ClimateEntityFeature.FAN_MODE
|
||||
| ClimateEntityFeature.TURN_OFF
|
||||
| ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
if not isinstance(self.device, radiotherm.thermostat.CT80):
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue