Skip to content

Commit

Permalink
Fix bug where entities would be filtered by convert
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse authored Mar 12, 2019
2 parents 05a40aa + ccc830d commit 4b9701f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alexa_media/notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def convert(self, names, type_="entities", filter_matches=False):
alexa.name,
alexa.unique_id,
alexa.entity_id)
if item in (alexa.name, alexa.unique_id, alexa.entity_id):
if item in (alexa, alexa.name, alexa.unique_id,
alexa.entity_id):
if type_ == "entities":
converted = alexa
elif type_ == "serialnumbers":
Expand Down

0 comments on commit 4b9701f

Please sign in to comment.