From ea8d6d47e87c6fe875f3ffdb54c33ccde5fc7ccb Mon Sep 17 00:00:00 2001 From: Maximilian <43999966+DeerMaximum@users.noreply.github.com> Date: Wed, 12 Aug 2026 16:29:03 +0200 Subject: [PATCH] Split user flow init and data submission in nina config flow tests (#178992) --- tests/components/nina/test_config_flow.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/components/nina/test_config_flow.py b/tests/components/nina/test_config_flow.py index 51fe18d6c3cf..0a2f1801940b 100644 --- a/tests/components/nina/test_config_flow.py +++ b/tests/components/nina/test_config_flow.py @@ -98,7 +98,14 @@ async def test_step_user_no_selection( result: dict[str, Any] = await hass.config_entries.flow.async_init( DOMAIN, context={"source": SOURCE_USER}, - data={CONF_FILTERS: {CONF_HEADLINE_FILTER: ""}}, + ) + + assert result["type"] is FlowResultType.FORM + assert result["errors"] == {} + + result = await hass.config_entries.flow.async_configure( + result["flow_id"], + user_input={CONF_FILTERS: {CONF_HEADLINE_FILTER: ""}}, ) assert result["type"] is FlowResultType.FORM