From b88c1eb315dd3344bff03b23cf734df60358e27c Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 30 Aug 2026 11:49:38 +0200 Subject: [PATCH] Split the OSO Energy user flow init from its data (#180726) --- tests/components/osoenergy/test_config_flow.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/components/osoenergy/test_config_flow.py b/tests/components/osoenergy/test_config_flow.py index 0d77781a538e..3d78b818f9fd 100644 --- a/tests/components/osoenergy/test_config_flow.py +++ b/tests/components/osoenergy/test_config_flow.py @@ -103,9 +103,15 @@ async def test_abort_if_existing_entry(hass: HomeAssistant) -> None: return_value=TEST_USER_EMAIL, ): 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_API_KEY: SUBSCRIPTION_KEY, }, )