mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Add new climate feature flags to gree (#109550)
Adds new climate feature flags to gree
This commit is contained in:
parent
3429a4733d
commit
45d8581bf1
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user