From 796db7cd8d8aa6928a31d439955444b7d94221b3 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 30 Aug 2026 15:28:13 +0200 Subject: [PATCH] Split the Hive user flow init from its data (#180760) --- tests/components/hive/test_config_flow.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/components/hive/test_config_flow.py b/tests/components/hive/test_config_flow.py index fdfece06dd9d..f0aa395d4355 100644 --- a/tests/components/hive/test_config_flow.py +++ b/tests/components/hive/test_config_flow.py @@ -731,9 +731,15 @@ async def test_abort_if_existing_entry(hass: HomeAssistant) -> None: config_entry.add_to_hass(hass) result = await hass.config_entries.flow.async_init( - DOMAIN, - context={"source": config_entries.SOURCE_USER}, - data={ + 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={ CONF_USERNAME: USERNAME, CONF_PASSWORD: PASSWORD, },