Expose Envisalink's zone number as an attribute (#71468)
Co-authored-by: J. Nick Koston <nick@koston.org>pull/74180/head
parent
97dcfe4445
commit
73bff4dee5
|
@ -93,6 +93,12 @@ class EnvisalinkBinarySensor(EnvisalinkDevice, BinarySensorEntity):
|
||||||
last_trip_time = None
|
last_trip_time = None
|
||||||
|
|
||||||
attr[ATTR_LAST_TRIP_TIME] = last_trip_time
|
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
|
return attr
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue