Update cast to use async_add_executor_job (#41794)
This commit is contained in:
1 parent
af74e36d16
commit
5c540dcfcf
1 file changed
+1
-1
@@ -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)
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user