diff --git a/tests/components/light/test_device_trigger.py b/tests/components/light/test_device_trigger.py index dd4745ac513..d3c630cd0dc 100644 --- a/tests/components/light/test_device_trigger.py +++ b/tests/components/light/test_device_trigger.py @@ -95,6 +95,8 @@ async def test_if_fires_on_state_change(hass, calls): platform = getattr(hass.components, f"test.{DOMAIN}") platform.init() + await hass.async_block_till_done() + assert await async_setup_component(hass, DOMAIN, {DOMAIN: {CONF_PLATFORM: "test"}}) await hass.async_block_till_done() @@ -180,6 +182,8 @@ async def test_if_fires_on_state_change_with_for(hass, calls): platform = getattr(hass.components, f"test.{DOMAIN}") platform.init() + await hass.async_block_till_done() + assert await async_setup_component(hass, DOMAIN, {DOMAIN: {CONF_PLATFORM: "test"}}) await hass.async_block_till_done()