From ac71641c181e4c3dd4ba39f4a7ee4f65c938e95c Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 30 Sep 2020 17:20:18 +0200 Subject: [PATCH] Use the Home Assistant Cast app to play media on Chromecast (#40782) --- homeassistant/components/cast/media_player.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/homeassistant/components/cast/media_player.py b/homeassistant/components/cast/media_player.py index 788da18e8bd..f62a73860f3 100644 --- a/homeassistant/components/cast/media_player.py +++ b/homeassistant/components/cast/media_player.py @@ -39,6 +39,7 @@ from homeassistant.components.media_player.const import ( SUPPORT_VOLUME_SET, ) from homeassistant.const import ( + CAST_APP_ID_HOMEASSISTANT, CONF_HOST, EVENT_HOMEASSISTANT_STOP, STATE_IDLE, @@ -291,6 +292,7 @@ class CastDevice(MediaPlayerEntity): ), ChromeCastZeroconf.get_zeroconf(), ) + chromecast.media_controller.app_id = CAST_APP_ID_HOMEASSISTANT self._chromecast = chromecast if CAST_MULTIZONE_MANAGER_KEY not in self.hass.data: