fix structure
This commit is contained in:
17
custom_components/jibo/config_flow.py
Normal file
17
custom_components/jibo/config_flow.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import voluptuous as vol
|
||||
from homeassistant import config_entries
|
||||
|
||||
from .const import DOMAIN
|
||||
|
||||
class JiboConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||
VERSION = 1
|
||||
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
|
||||
|
||||
async def async_step_user(self, user_input=None):
|
||||
if user_input is not None:
|
||||
return self.async_create_entry(title="Jibo", data=user_input)
|
||||
|
||||
data_schema = vol.Schema({
|
||||
vol.Required("jibo_ip"): str
|
||||
})
|
||||
return self.async_show_form(step_id="user", data_schema=data_schema)
|
||||
Reference in New Issue
Block a user