Set up the config entry in NMBS concurrent setup test (#196038)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Joost Lekkerkerker
2026-12-02 14:42:26 +01:00
committed by GitHub
co-authored by Claude
parent b937255b70
commit d0bef190ba
+4 -2
View File
@@ -15,7 +15,6 @@ from homeassistant.components.nmbs.const import (
)
from homeassistant.config_entries import ConfigEntryState
from homeassistant.core import HomeAssistant
from homeassistant.setup import async_setup_component
async def test_setup_entry(
@@ -158,7 +157,10 @@ async def test_concurrent_setup_shares_station_fetch(
mock_config_entry.add_to_hass(hass)
mock_second_config_entry.add_to_hass(hass)
setup_task = hass.async_create_task(async_setup_component(hass, DOMAIN, {}))
# Setting up one entry sets up the integration, which sets up both entries.
setup_task = hass.async_create_task(
hass.config_entries.async_setup(mock_config_entry.entry_id)
)
# Release the fetch only after both entry setups are underway, so the
# second entry sees the first entry's fetch in flight rather than a
# completed task.