mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Expose Envisalink's zone number as an attribute (#71468)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
97dcfe4445
commit
73bff4dee5
@ -93,6 +93,12 @@ class EnvisalinkBinarySensor(EnvisalinkDevice, BinarySensorEntity):
|
||||
last_trip_time = None
|
||||
|
||||
attr[ATTR_LAST_TRIP_TIME] = last_trip_time
|
||||
|
||||
# Expose the zone number as an attribute to allow
|
||||
# for easier entity to zone mapping (e.g. to bypass
|
||||
# the zone).
|
||||
attr["zone"] = self._zone_number
|
||||
|
||||
return attr
|
||||
|
||||
@property
|
||||
|
Loading…
x
Reference in New Issue
Block a user