zha: Handle both input and output clusters (#8410)
bellows 0.3.0 changes the API to have both, renaming the attribute which used to be for input clusters in the process. This is in preparation for remotes.
This commit is contained in:
1 parent
7a4cc8e082
commit
2f474a0ed8
6 files changed
+42
-28
No files matched your search
@@ -46,10 +46,10 @@ class Light(zha.Entity, light.Light):
|
||||
self._brightness = None
|
||||
|
||||
import bellows.zigbee.zcl.clusters as zcl_clusters
|
||||
if zcl_clusters.general.LevelControl.cluster_id in self._clusters:
|
||||
if zcl_clusters.general.LevelControl.cluster_id in self._in_clusters:
|
||||
self._supported_features |= light.SUPPORT_BRIGHTNESS
|
||||
self._brightness = 0
|
||||
if zcl_clusters.lighting.Color.cluster_id in self._clusters:
|
||||
if zcl_clusters.lighting.Color.cluster_id in self._in_clusters:
|
||||
# Not sure all color lights necessarily support this directly
|
||||
# Should we emulate it?
|
||||
self._supported_features |= light.SUPPORT_COLOR_TEMP
|
||||
|
||||
Reference in new issue
Block a user