Split the Sky Remote user flow init from its data (#180772)

This commit is contained in:
Franck Nijhof
2026-08-30 13:01:55 +02:00
committed by GitHub
parent aadd4ae92b
commit 2b4e08731f
@@ -43,9 +43,15 @@ async def test_device_exists_abort(
mock_config_entry.add_to_hass(hass)
result = await hass.config_entries.flow.async_init(
DOMAIN,
context={"source": SOURCE_USER},
data={CONF_HOST: mock_config_entry.data[CONF_HOST]},
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: mock_config_entry.data[CONF_HOST]},
)
assert result["type"] is FlowResultType.ABORT