Split the Vera user flow init from its data (#180658)

This commit is contained in:
Franck Nijhof
2026-08-30 09:23:03 +02:00
committed by GitHub
parent 1fd7f98e67
commit f2fac59cff
+9 -3
View File
@@ -73,9 +73,15 @@ async def test_async_step_finish_error(hass: HomeAssistant) -> None:
vera_controller_class_mock.return_value = controller
result = await hass.config_entries.flow.async_init(
DOMAIN,
context={"source": config_entries.SOURCE_USER},
data={CONF_CONTROLLER: "http://127.0.0.1:123/"},
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_CONTROLLER: "http://127.0.0.1:123/"},
)
assert result["type"] is FlowResultType.ABORT