Skip to content

Commit

Permalink
Fix typo in last_activity call
Browse files Browse the repository at this point in the history
Resolves #68
  • Loading branch information
alandtse authored Jan 26, 2019
2 parents b5c0ef3 + 63237be commit 3987b4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media_player/alexa.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
For more details about this platform, please refer to the documentation at
https://community.home-assistant.io/t/echo-devices-alexa-as-media-player-testers-needed/58639
VERSION 0.10.0
VERSION 0.10.1
"""
import logging

Expand Down Expand Up @@ -1005,7 +1005,7 @@ def get_last_device_serial(self):
return None

# Ignore discarded activity records
if last_activity['activityStatus'](0) != 'DISCARDED_NON_DEVICE_DIRECTED_INTENT':
if last_activity['activityStatus'][0] != 'DISCARDED_NON_DEVICE_DIRECTED_INTENT':
return last_activity['sourceDeviceIds'][0]['serialNumber']
else:
return None
Expand Down

1 comment on commit 3987b4d

@brianhanifin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing that.

Please sign in to comment.