From 6d05729e48a93713d70678c6707f786e7d4b204e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 14 Oct 2020 01:19:39 -0500 Subject: [PATCH] Update image_processing to use async_add_executor_job (#41810) --- homeassistant/components/image_processing/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/image_processing/__init__.py b/homeassistant/components/image_processing/__init__.py index 4617e78a6ec..82672c22015 100644 --- a/homeassistant/components/image_processing/__init__.py +++ b/homeassistant/components/image_processing/__init__.py @@ -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.