From dabf8884c57ab21837041da51bcbaaa272b12ec5 Mon Sep 17 00:00:00 2001 From: Manu Date: Thu, 1 Oct 2026 17:11:55 +0200 Subject: [PATCH] Split user flow init and data submission in openuv config flow tests (#183911) --- tests/components/openuv/test_config_flow.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/components/openuv/test_config_flow.py b/tests/components/openuv/test_config_flow.py index 00386eb215ba..db19e34bc646 100644 --- a/tests/components/openuv/test_config_flow.py +++ b/tests/components/openuv/test_config_flow.py @@ -64,7 +64,14 @@ async def test_duplicate_error( ) -> None: """Test that errors are shown when duplicates are added.""" result = await hass.config_entries.flow.async_init( - DOMAIN, context={"source": SOURCE_USER}, data=config + DOMAIN, context={"source": SOURCE_USER} + ) + assert result["type"] is FlowResultType.FORM + assert result["step_id"] == "user" + assert not result["errors"] + + result = await hass.config_entries.flow.async_configure( + result["flow_id"], user_input=config ) assert result["type"] is FlowResultType.ABORT assert result["reason"] == "already_configured"