Add TURN_ON/OFF ClimateEntityFeature for ZHA (#108978)

This commit is contained in:
G Johansson 2024-01-30 17:57:11 +01:00 committed by GitHub
parent cac0d07549
commit b4c0e52ebd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,7 +148,11 @@ class Thermostat(ZhaEntity, ClimateEntity):
self._thrm = self.cluster_handlers.get(CLUSTER_HANDLER_THERMOSTAT)
self._preset = PRESET_NONE
self._presets = []
self._supported_flags = ClimateEntityFeature.TARGET_TEMPERATURE
self._supported_flags = (
ClimateEntityFeature.TARGET_TEMPERATURE
| ClimateEntityFeature.TURN_OFF
| ClimateEntityFeature.TURN_ON
)
self._fan = self.cluster_handlers.get(CLUSTER_HANDLER_FAN)
@property