Add NX584 alarm binary_sensor zone_number attribute (#36552)
This commit is contained in:
1 parent
38bb8ef4d2
commit
5f8dcd45c1
2 files changed
+6
No files matched your search
@@ -101,6 +101,11 @@ class NX584ZoneSensor(BinarySensorEntity):
|
||||
# True means "faulted" or "open" or "abnormal state"
|
||||
return self._zone["state"]
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
return {"zone_number": self._zone["number"]}
|
||||
|
||||
|
||||
class NX584Watcher(threading.Thread):
|
||||
"""Event listener thread to process NX584 events."""
|
||||
|
||||
Reference in new issue
Block a user