Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Remove the constant STATUS_REPORT and replace it with getting the id of zone_status.
  • Loading branch information
simon3panda committed Nov 25, 2024
1 parent 29c7fab commit 6589ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zhaquirks/linxura/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class LinxuraIASCluster(CustomCluster, zigpy.zcl.clusters.security.IasZone):
def _update_attribute(self, attrid, value):
self.info("Linxura update attribute - attrid: %d, value:%d", attrid, value)
super()._update_attribute(attrid, value)
if attrid == STATUS_REPORT:
if attrid == self.AttributeDefs.zone_status.id:
if value > 0 and value < 24:
if value > 0 and value < 6:
button = BUTTON_1
Expand Down

0 comments on commit 6589ed3

Please sign in to comment.