Call sync function from async context (#37324)

pull/37478/head
Tim van Cann 2020-07-04 17:47:12 +02:00 committed by GitHub
parent ebcee2eb35
commit 333c151955
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ async def async_setup_entry(
integration_id = entry.data[CONF_ID]
try:
each_upcoming = client.upcoming_of_each()
each_upcoming = await hass.async_add_executor_job(client.upcoming_of_each)
except AvriException as ex:
raise PlatformNotReady from ex
else: