mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-16 13:56:29 +00:00
Add import to make example code usable (#541)
This commit is contained in:
parent
34c560b304
commit
75cfb9950d
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user