Don't use the homeassistant media app when casting media (#62385)

pull/62391/head
Erik Montnemery 2021-12-20 14:28:02 +01:00 committed by GitHub
parent 43099f6eb0
commit c96606df68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -526,7 +526,7 @@ class CastDevice(MediaPlayerEntity):
controller.play_media(media)
else:
app_data = {"media_id": media_id, "media_type": media_type, **extra}
quick_play(self._chromecast, "homeassistant_media", app_data)
quick_play(self._chromecast, "default_media_receiver", app_data)
def _media_status(self):
"""

View File

@ -791,7 +791,7 @@ async def test_entity_play_media(hass: HomeAssistant, quick_play_mock):
chromecast.media_controller.play_media.assert_not_called()
quick_play_mock.assert_called_once_with(
chromecast,
"homeassistant_media",
"default_media_receiver",
{
"media_id": "best.mp3",
"media_type": "audio",
@ -907,7 +907,7 @@ async def test_entity_play_media_sign_URL(hass: HomeAssistant, quick_play_mock):
# Play_media
await common.async_play_media(hass, "audio", "/best.mp3", entity_id)
quick_play_mock.assert_called_once_with(
chromecast, "homeassistant_media", {"media_id": ANY, "media_type": "audio"}
chromecast, "default_media_receiver", {"media_id": ANY, "media_type": "audio"}
)
assert quick_play_mock.call_args[0][2]["media_id"].startswith(
"http://example.com:8123/best.mp3?authSig="
@ -1311,7 +1311,7 @@ async def test_group_media_control(hass, mz_mock, quick_play_mock):
assert not chromecast.media_controller.play_media.called
quick_play_mock.assert_called_once_with(
chromecast,
"homeassistant_media",
"default_media_receiver",
{"media_id": "best.mp3", "media_type": "music"},
)