mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Add new climate feature flags to ecobee (#109540)
Adds new climate feature flags to ecobee
This commit is contained in:
parent
d7c6e85cc4
commit
7730efdaa2
@ -323,6 +323,7 @@ class Thermostat(ClimateEntity):
|
||||
_attr_fan_modes = [FAN_AUTO, FAN_ON]
|
||||
_attr_name = None
|
||||
_attr_has_entity_name = True
|
||||
_enable_turn_on_off_backwards_compatibility = False
|
||||
|
||||
def __init__(
|
||||
self, data: EcobeeData, thermostat_index: int, thermostat: dict
|
||||
@ -375,6 +376,10 @@ class Thermostat(ClimateEntity):
|
||||
supported = supported | ClimateEntityFeature.TARGET_HUMIDITY
|
||||
if self.has_aux_heat:
|
||||
supported = supported | ClimateEntityFeature.AUX_HEAT
|
||||
if len(self.hvac_modes) > 1 and HVACMode.OFF in self.hvac_modes:
|
||||
supported = (
|
||||
supported | ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
|
||||
)
|
||||
return supported
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user