From 94f97e4917740fc4d68263c28f89ee99f1eb9a27 Mon Sep 17 00:00:00 2001 From: Matthieu Date: Sat, 26 Oct 2019 17:18:07 +0200 Subject: [PATCH] Update flow --- custom_components/georide/config_flow.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/custom_components/georide/config_flow.py b/custom_components/georide/config_flow.py index a0afc1f..4648701 100644 --- a/custom_components/georide/config_flow.py +++ b/custom_components/georide/config_flow.py @@ -1,14 +1,16 @@ +""" Georide config flow file """ + from homeassistant import config_entries +import voluptuous as vol + from .const import DOMAIN class GeorideConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): + """Geride config flow """ async def async_step_user(self, info): - if info is not None: - # process info - return self.async_show_form( step_id='user', data_schema=vol.Schema({ - vol.Required('password'): str - }) - ) \ No newline at end of file + vol.Required('password'): str + })) + \ No newline at end of file