Add model check to ZHA Sonoff manufacturer specific cluster handler (#108947)
This commit is contained in:
parent
3cc5ffaa4b
commit
7069fb9508
1 changed files with 5 additions and 1 deletions
|
@ -430,4 +430,8 @@ class XiaomiVibrationAQ1ClusterHandler(MultistateInputClusterHandler):
|
|||
class SonoffPresenceSenorClusterHandler(ClusterHandler):
|
||||
"""SonoffPresenceSensor cluster handler."""
|
||||
|
||||
ZCL_INIT_ATTRS = {"last_illumination_state": True}
|
||||
def __init__(self, cluster: zigpy.zcl.Cluster, endpoint: Endpoint) -> None:
|
||||
"""Initialize SonoffPresenceSensor cluster handler."""
|
||||
super().__init__(cluster, endpoint)
|
||||
if self.cluster.endpoint.model == "SNZB-06P":
|
||||
self.ZCL_INIT_ATTRS = {"last_illumination_state": True}
|
||||
|
|
Loading…
Add table
Reference in a new issue