Update config_entries_config_flow_handler.md

This commit is contained in:
Paulus Schoutsen 2018-08-27 16:08:12 +02:00 committed by GitHub
parent 39b8951375
commit 6c632c959c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,8 @@ You might want to initialize a config flow programmatically. For example, if we
```python
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.