Add new climate feature flags to honeywell (#109556)

Adds new climate feature flags to honeywell
This commit is contained in:
G Johansson 2024-02-04 04:41:07 -05:00 committed by GitHub
parent 552b14c5e8
commit 0b3f4f1720
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -143,6 +143,7 @@ class HoneywellUSThermostat(ClimateEntity):
_attr_has_entity_name = True _attr_has_entity_name = True
_attr_name = None _attr_name = None
_attr_translation_key = "honeywell" _attr_translation_key = "honeywell"
_enable_turn_on_off_backwards_compatibility = False
def __init__( def __init__(
self, self,
@ -187,6 +188,10 @@ class HoneywellUSThermostat(ClimateEntity):
| ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.TARGET_TEMPERATURE_RANGE | ClimateEntityFeature.TARGET_TEMPERATURE_RANGE
) )
if len(self.hvac_modes) > 1 and HVACMode.OFF in self.hvac_modes:
self._attr_supported_features |= (
ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
)
if device._data.get("canControlHumidification"): if device._data.get("canControlHumidification"):
self._attr_supported_features |= ClimateEntityFeature.TARGET_HUMIDITY self._attr_supported_features |= ClimateEntityFeature.TARGET_HUMIDITY