diff --git a/zhaquirks/linxura/__init__.py b/zhaquirks/linxura/__init__.py index f316cd1ff2..7e118c63c5 100644 --- a/zhaquirks/linxura/__init__.py +++ b/zhaquirks/linxura/__init__.py @@ -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