mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 04:05:06 +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):
|
async def async_process_image(self, image):
|
||||||
"""Process 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):
|
async def async_update(self):
|
||||||
"""Update image and process it.
|
"""Update image and process it.
|
||||||
|
Reference in New Issue
Block a user