Add TURN_ON/OFF ClimateEntityFeature for IntesisHome (#109134)

pull/109150/head
G Johansson 2024-01-30 18:05:03 +01:00 committed by GitHub
parent 9d664c0fdd
commit 63594bac89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,10 @@ class IntesisAC(ClimateEntity):
self._power_consumption_heat = None
self._power_consumption_cool = None
self._attr_supported_features |= (
ClimateEntityFeature.TURN_OFF | ClimateEntityFeature.TURN_ON
)
# Setpoint support
if controller.has_setpoint_control(ih_device_id):
self._attr_supported_features |= ClimateEntityFeature.TARGET_TEMPERATURE