mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-15 13:26:28 +00:00
Update config_entries_config_flow_handler.md
This commit is contained in:
parent
39b8951375
commit
6c632c959c
@ -25,7 +25,8 @@ You might want to initialize a config flow programmatically. For example, if we
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
await hass.config_entries.flow.async_init(
|
await hass.config_entries.flow.async_init(
|
||||||
'hue', source=data_entry_flow.SOURCE_DISCOVERY, data=discovery_info)
|
'hue', data=discovery_info,
|
||||||
|
context={'source': config_entries.SOURCE_DISCOVERY})
|
||||||
```
|
```
|
||||||
|
|
||||||
The config flow handler will need to add a step to support the given source. The step should follow the same return values as a normal step.
|
The config flow handler will need to add a step to support the given source. The step should follow the same return values as a normal step.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user