Split the Hive user flow init from its data (#180760)

This commit is contained in:
Franck Nijhof
2026-08-30 15:28:13 +02:00
committed by GitHub
parent 24a7f37214
commit 796db7cd8d
+9 -3
View File
@@ -731,9 +731,15 @@ async def test_abort_if_existing_entry(hass: HomeAssistant) -> None:
config_entry.add_to_hass(hass)
result = await hass.config_entries.flow.async_init(
DOMAIN,
context={"source": config_entries.SOURCE_USER},
data={
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_USERNAME: USERNAME,
CONF_PASSWORD: PASSWORD,
},