diff --git a/tests/components/soma/test_config_flow.py b/tests/components/soma/test_config_flow.py index 67109e37c6db..9c69eb4db90a 100644 --- a/tests/components/soma/test_config_flow.py +++ b/tests/components/soma/test_config_flow.py @@ -87,8 +87,14 @@ async def test_full_flow(hass: HomeAssistant) -> None: hass.data[DOMAIN] = {} with patch.object(SomaApi, "list_devices", return_value={"result": "success"}): result = await hass.config_entries.flow.async_init( - DOMAIN, - context={"source": SOURCE_USER}, - data={"host": MOCK_HOST, "port": MOCK_PORT}, + 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={"host": MOCK_HOST, "port": MOCK_PORT}, ) assert result["type"] is FlowResultType.CREATE_ENTRY