Skip to content

Commit

Permalink
fix(sensor): fix missing music alarms
Browse files Browse the repository at this point in the history
Closes #402
  • Loading branch information
alandtse committed Oct 8, 2019
1 parent 5b28532 commit c475421
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/alexa_media/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,8 @@ async def process_notifications(login_obj, raw_notifications=None):
for notification in raw_notifications:
n_dev_id = notification['deviceSerialNumber']
n_type = notification['type']
if n_type == "MusicAlarm":
n_type = "Alarm"
n_id = notification['notificationIndex']
n_date = notification['originalDate']
n_time = notification['originalTime']
Expand Down

0 comments on commit c475421

Please sign in to comment.