Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
play_media does not wait for playback to end now
Browse files Browse the repository at this point in the history
  • Loading branch information
georgezhao2010 authored Aug 10, 2021
1 parent 082c2ef commit 444fb3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions custom_components/apple_airplayer/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"domain": "apple_airplayer",
"name": "Apple AirPlayer",
"version": "v0.0.4",
"version": "v0.0.6",
"config_flow": true,
"documentation": "https://github.com/georgezhao2010/apple_airplayer",
"issue_tracker": "https://github.com/georgezhao2010/apple_airplayer/issue",
"requirements": ["pyatv==0.8.1"],
"requirements": ["pyatv==0.8.2"],
"dependencies": [],
"iot_class": "local_push",
"codeowners": ["@georgezhao2010"]
Expand Down
4 changes: 2 additions & 2 deletions custom_components/apple_airplayer/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ async def async_turn_on(self):

async def async_play_media(self, media_type, media_id, **kwargs):
if self._player_device.support_play_url:
await self.async_play_url(media_id)
self.hass.async_create_task(self.async_play_url(media_id))
elif self._player_device.support_stream_file:
await self.async_play_stream(media_id)
self.hass.async_create_task(self.async_play_stream(media_id))

async def async_save_audio_file(self, filename, data):
def save_audio():
Expand Down

0 comments on commit 444fb3c

Please sign in to comment.