Update nexia to use async_add_executor_job (#41451)

pull/41119/head
J. Nick Koston 2020-10-07 23:59:02 -05:00 committed by GitHub
parent 700e639ec6
commit c1a0329401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
async def _async_update_data():
"""Fetch data from API endpoint."""
return await hass.async_add_job(nexia_home.update)
return await hass.async_add_executor_job(nexia_home.update)
coordinator = DataUpdateCoordinator(
hass,