Split the Pterodactyl user flow init from its data (#180684)

This commit is contained in:
Franck Nijhof
2026-08-29 21:17:04 +02:00
committed by GitHub
parent 915d135c66
commit e2e687b200
@@ -102,7 +102,14 @@ async def test_service_already_configured(
mock_config_entry.add_to_hass(hass)
result = await hass.config_entries.flow.async_init(
DOMAIN, context={"source": SOURCE_USER}, data=TEST_USER_INPUT
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=TEST_USER_INPUT
)
assert result["type"] is FlowResultType.ABORT