parent
b536af6139
commit
94f97e4917
@ -1,14 +1,16 @@
|
|||||||
|
""" Georide config flow file """
|
||||||
|
|
||||||
from homeassistant import config_entries
|
from homeassistant import config_entries
|
||||||
|
import voluptuous as vol
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
|
||||||
class GeorideConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
class GeorideConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
|
"""Geride config flow """
|
||||||
async def async_step_user(self, info):
|
async def async_step_user(self, info):
|
||||||
if info is not None:
|
|
||||||
# process info
|
|
||||||
|
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id='user',
|
step_id='user',
|
||||||
data_schema=vol.Schema({
|
data_schema=vol.Schema({
|
||||||
vol.Required('password'): str
|
vol.Required('password'): str
|
||||||
})
|
}))
|
||||||
)
|
|
Loading…
Reference in new issue