Skip to content

Commit

Permalink
feat: add alexa sound to play_media
Browse files Browse the repository at this point in the history
Closes #466
  • Loading branch information
alandtse committed Dec 16, 2019
1 parent db20537 commit 3dc51f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,10 @@ async def async_play_media(self,
**kwargs)
elif media_type == "routine":
await self.alexa_api.run_routine(media_id)
elif media_type == "sound":
await self.alexa_api.play_sound(
media_id,
customer_id=self._customer_id, **kwargs)
else:
await self.alexa_api.play_music(
media_type, media_id,
Expand Down

0 comments on commit 3dc51f8

Please sign in to comment.