From a8a2109cefeb80ad1f4891a41420860575d050b3 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Oct 2020 02:32:55 -0500 Subject: [PATCH] Convert last remaining async_add_job in light to async_add_executor_job (#41518) --- homeassistant/components/light/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/light/__init__.py b/homeassistant/components/light/__init__.py index 723967b3d51..3defb203be8 100644 --- a/homeassistant/components/light/__init__.py +++ b/homeassistant/components/light/__init__.py @@ -343,7 +343,7 @@ class Profiles: return None return profiles - cls._all = await hass.async_add_job(load_profile_data, hass) + cls._all = await hass.async_add_executor_job(load_profile_data, hass) return cls._all is not None @classmethod