Add new climate feature flags to iaqualink (#109558)

pull/109883/head
G Johansson 2024-02-03 20:29:40 -05:00 committed by Franck Nijhof
parent 122652b396
commit 064f412da4
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
1 changed files with 6 additions and 1 deletions

View File

@ -42,7 +42,12 @@ class HassAqualinkThermostat(AqualinkEntity, ClimateEntity):
"""Representation of a thermostat."""
_attr_hvac_modes = [HVACMode.HEAT, HVACMode.OFF]
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
_attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)
_enable_turn_on_off_backwards_compatibility = False
def __init__(self, dev: AqualinkThermostat) -> None:
"""Initialize AquaLink thermostat."""