mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 16:27:08 +00:00
Update image_processing to use async_add_executor_job (#41810)
This commit is contained in:
parent
6c0d5fa1d6
commit
6d05729e48
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user