mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Support launching app deep links in apple_tv integration (#94705)
This commit is contained in:
committed by
GitHub
parent
d7755a92c3
commit
3778e1cd77
@@ -282,7 +282,7 @@ class AppleTvMediaPlayer(AppleTVEntity, MediaPlayerEntity):
|
||||
"""Send the play_media command to the media player."""
|
||||
# If input (file) has a file format supported by pyatv, then stream it with
|
||||
# RAOP. Otherwise try to play it with regular AirPlay.
|
||||
if media_type == MediaType.APP:
|
||||
if media_type in {MediaType.APP, MediaType.URL}:
|
||||
await self.atv.apps.launch_app(media_id)
|
||||
return
|
||||
|
||||
|
Reference in New Issue
Block a user