mirror of
https://github.com/home-assistant/core.git
synced 2026-12-03 04:08:19 -04:00
Set up the config entry directly in Subaru tests (#195482)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
609e60c7f2
commit
758ddac8d9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user