mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Use the Home Assistant Cast app to play media on Chromecast (#40782)
This commit is contained in:
parent
a11fd08d20
commit
ac71641c18
@ -39,6 +39,7 @@ from homeassistant.components.media_player.const import (
|
|||||||
SUPPORT_VOLUME_SET,
|
SUPPORT_VOLUME_SET,
|
||||||
)
|
)
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
|
CAST_APP_ID_HOMEASSISTANT,
|
||||||
CONF_HOST,
|
CONF_HOST,
|
||||||
EVENT_HOMEASSISTANT_STOP,
|
EVENT_HOMEASSISTANT_STOP,
|
||||||
STATE_IDLE,
|
STATE_IDLE,
|
||||||
@ -291,6 +292,7 @@ class CastDevice(MediaPlayerEntity):
|
|||||||
),
|
),
|
||||||
ChromeCastZeroconf.get_zeroconf(),
|
ChromeCastZeroconf.get_zeroconf(),
|
||||||
)
|
)
|
||||||
|
chromecast.media_controller.app_id = CAST_APP_ID_HOMEASSISTANT
|
||||||
self._chromecast = chromecast
|
self._chromecast = chromecast
|
||||||
|
|
||||||
if CAST_MULTIZONE_MANAGER_KEY not in self.hass.data:
|
if CAST_MULTIZONE_MANAGER_KEY not in self.hass.data:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user