mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Update cast to use async_add_executor_job (#41794)
This commit is contained in:
parent
af74e36d16
commit
5c540dcfcf
@ -504,7 +504,7 @@ class CastDevice(MediaPlayerEntity):
|
||||
hass_url = get_url(self.hass, prefer_external=True)
|
||||
media_id = f"{hass_url}{media_id}"
|
||||
|
||||
await self.hass.async_add_job(
|
||||
await self.hass.async_add_executor_job(
|
||||
ft.partial(self.play_media, media_type, media_id, **kwargs)
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user