mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15:08 +02:00
Update mjpeg camera to use async_add_executor_job (#41791)
This commit is contained in:
@@ -110,7 +110,7 @@ class MjpegCamera(Camera):
|
|||||||
self._authentication == HTTP_DIGEST_AUTHENTICATION
|
self._authentication == HTTP_DIGEST_AUTHENTICATION
|
||||||
or self._still_image_url is None
|
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
|
return image
|
||||||
|
|
||||||
websession = async_get_clientsession(self.hass, verify_ssl=self._verify_ssl)
|
websession = async_get_clientsession(self.hass, verify_ssl=self._verify_ssl)
|
||||||
|
Reference in New Issue
Block a user