From 49e5b665cf2a93315e14561403c6469c8ce9e8ec Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 9 Oct 2020 08:52:06 -0500 Subject: [PATCH] Convert final async_add_job to async_add_executor_job in logbook tests (#41552) --- tests/components/logbook/test_init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/components/logbook/test_init.py b/tests/components/logbook/test_init.py index 96a5634d350..78772b0ba83 100644 --- a/tests/components/logbook/test_init.py +++ b/tests/components/logbook/test_init.py @@ -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)