Skip to content

Commit

Permalink
feat: triggering a skill with alexa media player
Browse files Browse the repository at this point in the history
Final code for triggering a skill with alexa media player
  • Loading branch information
keatontaylor authored May 8, 2020
1 parent 1e1ded2 commit 7aeac34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,9 @@ async def async_play_media(self, media_type, media_id, enqueue=None, **kwargs):
elif media_type == "skill":
await self.alexa_api.run_skill(
media_id,
queue_delay=0,
queue_delay=self.hass.data[DATA_ALEXAMEDIA]["accounts"][self.email][
"options"
][CONF_QUEUE_DELAY],
)
else:
await self.alexa_api.play_music(
Expand Down

0 comments on commit 7aeac34

Please sign in to comment.