mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Update mjpeg camera to use async_add_executor_job (#41791)
This commit is contained in:
parent
840e4be029
commit
aefd4908df
@ -110,7 +110,7 @@ class MjpegCamera(Camera):
|
||||
self._authentication == HTTP_DIGEST_AUTHENTICATION
|
||||
or self._still_image_url is None
|
||||
):
|
||||
image = await self.hass.async_add_job(self.camera_image)
|
||||
image = await self.hass.async_add_executor_job(self.camera_image)
|
||||
return image
|
||||
|
||||
websession = async_get_clientsession(self.hass, verify_ssl=self._verify_ssl)
|
||||
|
Loading…
x
Reference in New Issue
Block a user