From 35204f755af7bcf3bae28dbc75ac619c02688f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Modzelewski?= Date: Thu, 15 Jun 2023 20:39:28 +0200 Subject: [PATCH] Support launching app deep links in apple_tv integration --- homeassistant/components/apple_tv/media_player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/apple_tv/media_player.py b/homeassistant/components/apple_tv/media_player.py index 4196dd1bd9a912..a70a30656f2d4c 100644 --- a/homeassistant/components/apple_tv/media_player.py +++ b/homeassistant/components/apple_tv/media_player.py @@ -282,7 +282,7 @@ async def async_play_media( """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