Add import to make example code usable (#541)

This commit is contained in:
Maximilian Ertl 2020-05-18 10:52:20 +02:00 committed by GitHub
parent 34c560b304
commit 75cfb9950d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,8 @@ Once you have updated your manifest and created the `config_flow.py`, you will n
Your config flow will need to define steps of your configuration flow. The docs for [Data Entry Flow](data_entry_flow_index.md) describe the different return values of a step. Here is an example on how to define the `user` step.
```python
import voluptuous as vol
class ExampleConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
async def async_step_user(self, info):
if info is not None: