Add new climate feature flags to zhong_hong (#109444)

pull/109489/head
G Johansson 2024-02-02 22:35:16 -05:00 committed by GitHub
parent 63f78dece0
commit bb6051f9c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -128,9 +128,13 @@ class ZhongHongClimate(ClimateEntity):
]
_attr_should_poll = False
_attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.FAN_MODE
ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.FAN_MODE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)
_attr_temperature_unit = UnitOfTemperature.CELSIUS
_enable_turn_on_off_backwards_compatibility = False
def __init__(self, hub, addr_out, addr_in):
"""Set up the ZhongHong climate devices."""