mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 11:33:11 -04:00
Set up the config entry in NMBS concurrent setup test (#196038)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
b937255b70
commit
d0bef190ba
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user