tests: entry auto-loads after the config flow; traversal assertion checks path segments, not substrings

This commit is contained in:
Matysh
2026-07-06 00:35:36 +03:00
parent 290b107c49
commit a4b3a4a83f
2 changed files with 6 additions and 4 deletions
+1 -2
View File
@@ -46,8 +46,7 @@ async def test_options_flow(hass: HomeAssistant) -> None:
)
result = await hass.config_entries.flow.async_configure(result["flow_id"], user_input={})
entry = hass.config_entries.async_entries(DOMAIN)[0]
await hass.config_entries.async_setup(entry.entry_id)
await hass.async_block_till_done()
await hass.async_block_till_done() # entry is auto-set-up after the flow
result = await hass.config_entries.options.async_init(entry.entry_id)
assert result["type"] is FlowResultType.FORM