From 75cfb9950dbd6ce5e10c3fe9e1ba637a6c3229c2 Mon Sep 17 00:00:00 2001 From: Maximilian Ertl Date: Mon, 18 May 2020 10:52:20 +0200 Subject: [PATCH] Add import to make example code usable (#541) --- docs/config_entries_config_flow_handler.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/config_entries_config_flow_handler.md b/docs/config_entries_config_flow_handler.md index 5807c196..e9dc1253 100644 --- a/docs/config_entries_config_flow_handler.md +++ b/docs/config_entries_config_flow_handler.md @@ -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: