Add new climate feature flags to gree (#109550)

Adds new climate feature flags to gree
This commit is contained in:
G Johansson 2024-02-03 20:26:44 -05:00 committed by GitHub
parent 3429a4733d
commit 45d8581bf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,6 +113,8 @@ class GreeClimateEntity(GreeEntity, ClimateEntity):
| ClimateEntityFeature.FAN_MODE
| ClimateEntityFeature.PRESET_MODE
| ClimateEntityFeature.SWING_MODE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)
_attr_target_temperature_step = TARGET_TEMPERATURE_STEP
_attr_hvac_modes = [*HVAC_MODES_REVERSE, HVACMode.OFF]
@ -120,6 +122,7 @@ class GreeClimateEntity(GreeEntity, ClimateEntity):
_attr_fan_modes = [*FAN_MODES_REVERSE]
_attr_swing_modes = SWING_MODES
_attr_name = None
_enable_turn_on_off_backwards_compatibility = False
def __init__(self, coordinator: DeviceDataUpdateCoordinator) -> None:
"""Initialize the Gree device."""