diff --git a/tests/components/tailwind/test_config_flow.py b/tests/components/tailwind/test_config_flow.py index 872e278d1450..715d2921b4fd 100644 --- a/tests/components/tailwind/test_config_flow.py +++ b/tests/components/tailwind/test_config_flow.py @@ -72,9 +72,15 @@ async def test_user_flow_errors( mock_tailwind.status.side_effect = side_effect result = await hass.config_entries.flow.async_init( - DOMAIN, - context={"source": SOURCE_USER}, - data={ + 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={ CONF_HOST: "127.0.0.1", CONF_TOKEN: "987654", }, @@ -109,9 +115,15 @@ async def test_user_flow_unsupported_firmware_version( """Test configuration flow aborts when the firmware version is not supported.""" mock_tailwind.status.side_effect = TailwindUnsupportedFirmwareVersionError result = await hass.config_entries.flow.async_init( - DOMAIN, - context={"source": SOURCE_USER}, - data={ + 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={ CONF_HOST: "127.0.0.1", CONF_TOKEN: "987654", }, @@ -133,9 +145,15 @@ async def test_user_flow_already_configured( assert mock_config_entry.data[CONF_HOST] == "127.0.0.127" result = await hass.config_entries.flow.async_init( - DOMAIN, - context={"source": SOURCE_USER}, - data={ + 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={ CONF_HOST: "127.0.0.1", CONF_TOKEN: "987654", },