From 219200b3403e7750fafe838541ffb46548e9152a Mon Sep 17 00:00:00 2001 From: Guido Schmitz Date: Thu, 2 Jun 2022 13:59:29 +0200 Subject: [PATCH] Fix test_hass_stop in devolo Home Network (#72833) Fix test_hass_stop --- tests/components/devolo_home_network/test_init.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/components/devolo_home_network/test_init.py b/tests/components/devolo_home_network/test_init.py index 66d32e8974d..4f0c5b3fb58 100644 --- a/tests/components/devolo_home_network/test_init.py +++ b/tests/components/devolo_home_network/test_init.py @@ -58,4 +58,5 @@ async def test_hass_stop(hass: HomeAssistant): await hass.config_entries.async_setup(entry.entry_id) await hass.async_block_till_done() hass.bus.async_fire(EVENT_HOMEASSISTANT_STOP) - assert async_disconnect.assert_called_once + await hass.async_block_till_done() + async_disconnect.assert_called_once()