diff --git a/tests/components/mqtt/test_init.py b/tests/components/mqtt/test_init.py index be1304cdbfef..08f1d8ca099c 100644 --- a/tests/components/mqtt/test_init.py +++ b/tests/components/mqtt/test_init.py @@ -214,6 +214,7 @@ async def test_mqtt_await_ack_at_disconnect( 0, False, ) + await hass.async_block_till_done(wait_background_tasks=True) async def test_publish(