Fix flakey sonos test test_creating_entry_sets_up_media_player (#114539)

This commit is contained in:
J. Nick Koston 2024-03-31 13:49:24 -10:00 committed by GitHub
parent 04786e019a
commit be398e0a3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -51,7 +51,7 @@ async def test_creating_entry_sets_up_media_player(
result = await hass.config_entries.flow.async_configure(result["flow_id"], {})
assert result["type"] == data_entry_flow.FlowResultType.CREATE_ENTRY
await hass.async_block_till_done()
await hass.async_block_till_done(wait_background_tasks=True)
assert len(mock_setup.mock_calls) == 1