From e539b9ffd59e628bca9497a9ddc2a75990b9b21c Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 30 Aug 2026 13:00:50 +0200 Subject: [PATCH] Split the Moehlenhoff Alpha2 user flow init from its data (#180778) --- .../moehlenhoff_alpha2/test_config_flow.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/components/moehlenhoff_alpha2/test_config_flow.py b/tests/components/moehlenhoff_alpha2/test_config_flow.py index dd96165ae396..bf69b30ef634 100644 --- a/tests/components/moehlenhoff_alpha2/test_config_flow.py +++ b/tests/components/moehlenhoff_alpha2/test_config_flow.py @@ -60,9 +60,15 @@ async def test_form_duplicate_error(hass: HomeAssistant) -> None: partialmethod(mock_update_data, hass), ): result = await hass.config_entries.flow.async_init( - DOMAIN, - data={"host": MOCK_BASE_HOST}, - context={"source": config_entries.SOURCE_USER}, + 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={"host": MOCK_BASE_HOST}, ) assert result["type"] is FlowResultType.ABORT assert result["reason"] == "already_configured"