Convert last remaining async_add_job in light to async_add_executor_job (#41518)

This commit is contained in:
J. Nick Koston 2020-10-09 02:32:55 -05:00 committed by GitHub
parent 1c431aa7bd
commit a8a2109cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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