Add a configflow
This commit is contained in:
14
custom_components/georide/config_flow.py
Normal file
14
custom_components/georide/config_flow.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from homeassistant import config_entries
|
||||
from .const import DOMAIN
|
||||
|
||||
class GeorideConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
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
|
||||
})
|
||||
)
|
||||
Reference in New Issue
Block a user