From b069dd05a0f1ef39efc5aa46936947d61c6eb152 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 30 Aug 2026 12:27:08 +0200 Subject: [PATCH] Split the EDL21 user flow init from its data (#180748) --- tests/components/edl21/test_config_flow.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/components/edl21/test_config_flow.py b/tests/components/edl21/test_config_flow.py index 97ad1464d77f..05db9a969b34 100644 --- a/tests/components/edl21/test_config_flow.py +++ b/tests/components/edl21/test_config_flow.py @@ -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