Home AssistantHome AssistantContributors
In code
ConfigFlowconfig_flow.pyasync_step_user
Also
config flows

A config flow asks the user for what it needs, like a host and a password, checks it, and creates a config entry. It sets a unique ID, so the same device can't be added twice.

A config flow can also start by itself, when a device is discovered. The user then only confirms.

New integrations that connect to a device or service are set up with a config flow, not with YAML.