From 1fd7f98e674831341cf104b8db3f0ef442ec93eb Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 30 Aug 2026 09:22:14 +0200 Subject: [PATCH] Split the Vilfo user flow init from its data (#180656) --- tests/components/vilfo/test_config_flow.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/components/vilfo/test_config_flow.py b/tests/components/vilfo/test_config_flow.py index 3d00708da4df..48e9b66f10b2 100644 --- a/tests/components/vilfo/test_config_flow.py +++ b/tests/components/vilfo/test_config_flow.py @@ -155,9 +155,15 @@ async def test_form_wrong_host( """Test we handle wrong host errors.""" mock_is_valid_host.return_value = False result = await hass.config_entries.flow.async_init( - DOMAIN, - context={"source": SOURCE_USER}, - data={ + 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={ CONF_HOST: "this is an invalid hostname", CONF_ACCESS_TOKEN: "test-token", },