Skip to content
Snippets Groups Projects
Unverified Commit 333c1519 authored by Tim van Cann's avatar Tim van Cann Committed by GitHub
Browse files

Call sync function from async context (#37324)

parent ebcee2eb
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ async def async_setup_entry( ...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment