Only try initializing Hue motion LED on endpoint 2 with ZHA (#81205)

pull/81365/head
TheJulianJES 2022-11-01 02:22:21 +01:00 committed by GitHub
parent eea4719544
commit 52fe40d539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ class BasicChannel(ZigbeeChannel):
def __init__(self, cluster: zigpy.zcl.Cluster, ch_pool: ChannelPool) -> None:
"""Initialize Basic channel."""
super().__init__(cluster, ch_pool)
if is_hue_motion_sensor(self):
if is_hue_motion_sensor(self) and self.cluster.endpoint.endpoint_id == 2:
self.ZCL_INIT_ATTRS = ( # pylint: disable=invalid-name
self.ZCL_INIT_ATTRS.copy()
)