Split the EDL21 user flow init from its data (#180748)

This commit is contained in:
Franck Nijhof
2026-08-30 12:27:08 +02:00
committed by GitHub
parent 5a40f36562
commit b069dd05a0
+9 -3
View File
@@ -44,9 +44,15 @@ async def test_integration_already_exists(hass: HomeAssistant) -> None:
).add_to_hass(hass)
result = await hass.config_entries.flow.async_init(
DOMAIN,
context={"source": SOURCE_USER},
data=VALID_CONFIG,
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=VALID_CONFIG,
)
assert result["type"] is FlowResultType.ABORT