Update nexia to use async_add_executor_job (#41451)
parent
700e639ec6
commit
c1a0329401
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue