Split the FAA Delays user flow init from its data (#180791)

This commit is contained in:
Franck Nijhof
2026-08-30 15:25:54 +02:00
committed by GitHub
parent b4997d58dd
commit aeb3b249f2
@@ -59,7 +59,15 @@ async def test_duplicate_error(hass: HomeAssistant) -> None:
MockConfigEntry(domain=DOMAIN, unique_id="test", data=conf).add_to_hass(hass)
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": config_entries.SOURCE_USER}, data=conf
DOMAIN, context={"source": config_entries.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=conf,
)
assert result["type"] is FlowResultType.ABORT