Skip to content

Commit

Permalink
Merge pull request #1031 from custom-components/dev
Browse files Browse the repository at this point in the history
2020-10-05
  • Loading branch information
alandtse authored Dec 5, 2020
2 parents 1097ac3 + 591b8a9 commit 3b91a31
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/alexa_media/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"issue_tracker": "https://github.com/custom-components/alexa_media_player/issues",
"dependencies": ["persistent_notification"],
"codeowners": ["@keatontaylor", "@alandtse"],
"requirements": ["alexapy==1.16.0", "packaging~=20.3", "wrapt~=1.12.1"]
"requirements": ["alexapy==1.17.0", "packaging~=20.3", "wrapt~=1.12.1"]
}
13 changes: 13 additions & 0 deletions custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,19 @@ async def async_play_media(self, media_type, media_id, enqueue=None, **kwargs):
elif media_type == "image":
_LOGGER.debug("%s:Setting background to %s", self, media_id)
await self.alexa_api.set_background(media_id)
elif media_type == "custom":
_LOGGER.debug(
'%s:Running custom command: "%s" with queue_delay %s',
self,
media_id,
queue_delay,
)
await self.alexa_api.run_custom(
media_id,
customer_id=self._customer_id,
queue_delay=queue_delay,
**kwargs,
)
else:
_LOGGER.debug(
"%s:Playing music %s on %s with queue_delay %s",
Expand Down

0 comments on commit 3b91a31

Please sign in to comment.