mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Call sync function from async context (#37324)
This commit is contained in:
parent
ebcee2eb35
commit
333c151955
@ -22,7 +22,7 @@ async def async_setup_entry(
|
|||||||
integration_id = entry.data[CONF_ID]
|
integration_id = entry.data[CONF_ID]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
each_upcoming = client.upcoming_of_each()
|
each_upcoming = await hass.async_add_executor_job(client.upcoming_of_each)
|
||||||
except AvriException as ex:
|
except AvriException as ex:
|
||||||
raise PlatformNotReady from ex
|
raise PlatformNotReady from ex
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user