Skip to content

Commit

Permalink
feat: add ability to set Echo show background
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jul 16, 2020
1 parent bf8212b commit 6814b2b
Show file tree
Hide file tree
Showing 2 changed files with 3 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": ["configurator"],
"codeowners": ["@keatontaylor", "@alandtse"],
"requirements": ["alexapy==1.11.0"]
"requirements": ["alexapy==1.12.0"]
}
2 changes: 2 additions & 0 deletions custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,8 @@ async def async_play_media(self, media_type, media_id, enqueue=None, **kwargs):
"options"
].get(CONF_QUEUE_DELAY, DEFAULT_QUEUE_DELAY),
)
elif media_type == "image":
await self.alexa_api.set_background(media_id)
else:
await self.alexa_api.play_music(
media_type,
Expand Down

0 comments on commit 6814b2b

Please sign in to comment.