Convert final async_add_job to async_add_executor_job in logbook tests (#41552)

This commit is contained in:
J. Nick Koston 2020-10-09 08:52:06 -05:00 committed by GitHub
parent 61262222aa
commit 49e5b665cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1599,7 +1599,7 @@ async def test_empty_config(hass, hass_client):
)
await hass.async_add_executor_job(init_recorder_component, hass)
await async_setup_component(hass, "logbook", config)
await hass.async_add_job(hass.data[recorder.DATA_INSTANCE].block_till_done)
await hass.async_add_executor_job(hass.data[recorder.DATA_INSTANCE].block_till_done)
hass.bus.async_fire(EVENT_HOMEASSISTANT_START)
hass.bus.async_fire(EVENT_HOMEASSISTANT_STARTED)