From 3dc51f8ebadd1498e3f08e494d29432418944293 Mon Sep 17 00:00:00 2001 From: "Alan D. Tse" Date: Sun, 15 Dec 2019 17:30:34 -0800 Subject: [PATCH] feat: add alexa sound to play_media Closes #466 --- custom_components/alexa_media/media_player.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/alexa_media/media_player.py b/custom_components/alexa_media/media_player.py index 36b2a100..3b455712 100644 --- a/custom_components/alexa_media/media_player.py +++ b/custom_components/alexa_media/media_player.py @@ -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,