Update generic camera to use async_add_executor_job (#41787)

pull/41796/head
J. Nick Koston 2020-10-13 14:59:39 -05:00 committed by GitHub
parent b58ef6ae92
commit e791946f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class GenericCamera(Camera):
) )
return self._last_image 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 # async
else: else:
try: try: