Fix race in automation test_extraction_functions (#111056)

This commit is contained in:
J. Nick Koston 2024-02-20 23:25:19 -06:00 committed by GitHub
parent 1a02330bd9
commit da9d71cb6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1623,6 +1623,9 @@ async def test_extraction_functions(
await async_setup_component(hass, "homeassistant", {})
await async_setup_component(hass, "calendar", {"calendar": {"platform": "demo"}})
# Ensure the calendar entities are setup before attaching triggers
await hass.async_block_till_done()
assert await async_setup_component(
hass,
DOMAIN,