diff --git a/tests/components/media_player/test_init.py b/tests/components/media_player/test_init.py index 35863f71362..d5eac466093 100644 --- a/tests/components/media_player/test_init.py +++ b/tests/components/media_player/test_init.py @@ -13,6 +13,7 @@ async def test_get_image(hass, hass_ws_client, caplog): await async_setup_component( hass, "media_player", {"media_player": {"platform": "demo"}} ) + await hass.async_block_till_done() client = await hass_ws_client(hass)