Split the Shopping List user flow init from its data (#180773)

This commit is contained in:
Franck Nijhof
2026-08-30 13:06:15 +02:00
committed by GitHub
parent ed0103a32d
commit f8b2d2add3
@@ -30,7 +30,15 @@ async def test_user_confirm(hass: HomeAssistant) -> None:
"""Test we can finish a config flow."""
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": SOURCE_USER}, data={}
DOMAIN, context={"source": SOURCE_USER}
)
assert result["type"] is FlowResultType.FORM
assert result["step_id"] == "user"
result = await hass.config_entries.flow.async_configure(
result["flow_id"],
user_input={},
)
assert result["type"] is FlowResultType.CREATE_ENTRY