Add new climate feature flags to lightwave (#109568)

This commit is contained in:
G Johansson 2024-02-03 20:30:08 -05:00 committed by GitHub
parent c94eb436fb
commit 470aef7483
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,9 +47,14 @@ class LightwaveTrv(ClimateEntity):
_attr_hvac_modes = [HVACMode.HEAT, HVACMode.OFF]
_attr_min_temp = DEFAULT_MIN_TEMP
_attr_max_temp = DEFAULT_MAX_TEMP
_attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
_attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)
_attr_target_temperature_step = 0.5
_attr_temperature_unit = UnitOfTemperature.CELSIUS
_enable_turn_on_off_backwards_compatibility = False
def __init__(self, name, device_id, lwlink, serial):
"""Initialize LightwaveTrv entity."""