Skip to content

Commit

Permalink
Add user attributes to sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
rgc99 committed Oct 24, 2023
1 parent b8ee0a2 commit 8be6e55
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/irrigation_unlimited/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def extra_state_attributes(self):
else:
attr[ATTR_NEXT_SCHEDULE] = "deprecated (use next_zone)"
attr[ATTR_NEXT_ZONE] = RES_NONE
attr |= self._controller.user
return attr


Expand Down Expand Up @@ -259,4 +260,5 @@ def extra_state_attributes(self):
if self._zone.show_timeline:
attr[ATTR_TIMELINE] = self._zone.timeline()
attr[ATTR_VOLUME] = self._zone.volume.total
attr |= self._zone.user
return attr

0 comments on commit 8be6e55

Please sign in to comment.