Skip to content

Commit

Permalink
feat: add name and entity_id to notification_event
Browse files Browse the repository at this point in the history
closes #1137
  • Loading branch information
alandtse committed Feb 8, 2021
1 parent 785ad71 commit 9c6f6f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion custom_components/alexa_media/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ def _trigger_event(self, time_date) -> None:
)
self.hass.bus.async_fire(
"alexa_media_notification_event",
event_data={"email": hide_email(self._account), "device": {"name": self._name}, "event": self._active[0]},
event_data={
"email": hide_email(self._account),
"device": {"name": self.name, "entity_id": self.entity_id},
"event": self._active[0],
},
)

def _fix_alarm_date_time(self, value):
Expand Down

0 comments on commit 9c6f6f8

Please sign in to comment.