Update image_processing to use async_add_executor_job (#41810)
This commit is contained in:
1 parent
6c0d5fa1d6
commit
6d05729e48
1 file changed
+1
-1
@@ -109,7 +109,7 @@ class ImageProcessingEntity(Entity):
|
||||
|
||||
async def async_process_image(self, image):
|
||||
"""Process image."""
|
||||
return await self.hass.async_add_job(self.process_image, image)
|
||||
return await self.hass.async_add_executor_job(self.process_image, image)
|
||||
|
||||
async def async_update(self):
|
||||
"""Update image and process it.
|
||||
|
||||
Reference in new issue
Block a user