mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Update image_processing to use async_add_executor_job (#41810)
This commit is contained in:
@@ -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