From 2440e220790e9d5ad05d822adc309631d91f8585 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 30 Aug 2026 15:22:52 +0200 Subject: [PATCH] Split the Environment Canada user flow init from its data (#180792) --- .../components/environment_canada/test_config_flow.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/components/environment_canada/test_config_flow.py b/tests/components/environment_canada/test_config_flow.py index 3c7643a9db0b..0aa132220cc1 100644 --- a/tests/components/environment_canada/test_config_flow.py +++ b/tests/components/environment_canada/test_config_flow.py @@ -180,7 +180,15 @@ async def test_lat_lon_not_specified(hass: HomeAssistant) -> None: del fake_config[CONF_LATITUDE] del fake_config[CONF_LONGITUDE] result = await hass.config_entries.flow.async_init( - DOMAIN, context={"source": config_entries.SOURCE_USER}, data=fake_config + 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=fake_config, ) await hass.async_block_till_done() assert result["type"] is FlowResultType.CREATE_ENTRY