mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 01:11:51 -04:00
Fix Subaru options flow test using empty config data (#178612)
This commit is contained in:
@@ -454,7 +454,8 @@ async def pin_form(
|
||||
@pytest.fixture
|
||||
async def options_form(hass: HomeAssistant) -> ConfigFlowResult:
|
||||
"""Return options form for Subaru config flow."""
|
||||
entry = MockConfigEntry(domain=DOMAIN, data={}, options=None)
|
||||
entry = MockConfigEntry(domain=DOMAIN, data=TEST_CONFIG, options=None)
|
||||
entry.add_to_hass(hass)
|
||||
await async_setup_component(hass, DOMAIN, {})
|
||||
with patch(ASYNC_SETUP_ENTRY, return_value=True):
|
||||
await async_setup_component(hass, DOMAIN, {})
|
||||
return await hass.config_entries.options.async_init(entry.entry_id)
|
||||
|
||||
Reference in New Issue
Block a user