mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Add TURN_ON/OFF ClimateEntityFeature for ZHA (#108978)
This commit is contained in:
parent
cac0d07549
commit
b4c0e52ebd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user