Add new climate feature flags to ephember (#109544)

Adds new climate feature flags to ephember
This commit is contained in:
G Johansson 2024-02-03 21:29:29 -05:00 committed by GitHub
parent 5f8248dc77
commit 5041ee3c28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,6 +83,7 @@ class EphEmberThermostat(ClimateEntity):
_attr_hvac_modes = OPERATION_LIST
_attr_temperature_unit = UnitOfTemperature.CELSIUS
_enable_turn_on_off_backwards_compatibility = False
def __init__(self, ember, zone):
"""Initialize the thermostat."""
@ -100,6 +101,9 @@ class EphEmberThermostat(ClimateEntity):
if self._hot_water:
self._attr_supported_features = ClimateEntityFeature.AUX_HEAT
self._attr_target_temperature_step = None
self._attr_supported_features |= (
ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
)
@property
def current_temperature(self):