Fix Subaru options flow test using empty config data (#178612)

This commit is contained in:
John Pettitt
2026-08-09 19:59:29 +02:00
committed by GitHub
parent e4f4154009
commit 3729fda120
+3 -2
View File
@@ -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)