Update generic camera to use async_add_executor_job (#41787)

This commit is contained in:
J. Nick Koston
2020-10-13 14:59:39 -05:00
committed by GitHub
parent b58ef6ae92
commit e791946f00

View File

@@ -145,7 +145,7 @@ class GenericCamera(Camera):
)
return self._last_image
self._last_image = await self.hass.async_add_job(fetch)
self._last_image = await self.hass.async_add_executor_job(fetch)
# async
else:
try: