Set up the config entry directly in Subaru tests (#195482)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
Joost Lekkerkerker
2026-11-30 11:15:52 +01:00
committed by GitHub
co-authored by Claude
parent 609e60c7f2
commit 758ddac8d9
+1 -2
View File
@@ -15,7 +15,6 @@ from homeassistant.config_entries import ConfigFlowResult
from homeassistant.const import CONF_DEVICE_ID, CONF_PASSWORD, CONF_PIN
from homeassistant.core import HomeAssistant
from homeassistant.data_entry_flow import FlowResultType
from homeassistant.setup import async_setup_component
from .conftest import (
MOCK_API_2FA_CONTACTS,
@@ -656,5 +655,5 @@ async def options_form(hass: HomeAssistant) -> ConfigFlowResult:
entry = MockConfigEntry(domain=DOMAIN, data=TEST_CONFIG, options=None)
entry.add_to_hass(hass)
with patch(ASYNC_SETUP_ENTRY, return_value=None):
await async_setup_component(hass, DOMAIN, {})
await hass.config_entries.async_setup(entry.entry_id)
return await hass.config_entries.options.async_init(entry.entry_id)