Make discovery flow tasks background tasks (#116327)

This commit is contained in:
J. Nick Koston 2024-04-28 08:13:37 -05:00 committed by GitHub
parent 5d59b4cddd
commit 76639252c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 8 deletions

View file

@ -1098,7 +1098,7 @@ async def test_setup_hardware_integration(
) as mock_setup_entry,
):
result = await async_setup_component(hass, "hassio", {"hassio": {}})
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)
assert result
assert aioclient_mock.call_count == 19