Update mjpeg camera to use async_add_executor_job (#41791)

This commit is contained in:
J. Nick Koston 2020-10-13 14:56:57 -05:00 committed by GitHub
parent 840e4be029
commit aefd4908df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)