Skip to content

Commit

Permalink
Update mjpeg camera to use async_add_executor_job (home-assistant#41791)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored and weissm committed Oct 16, 2020
1 parent 4c3c31a commit 8437e3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/mjpeg/camera.py
Expand Up @@ -110,7 +110,7 @@ async def async_camera_image(self):
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)
Expand Down

0 comments on commit 8437e3d

Please sign in to comment.