Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STEP_USER_DATA_SCHEMA = vol.Schema(
- {
- vol.Optional(CONF_NAME, DEFAULT_NAME): str,
- vol.Required(CONF_API_KEY): str,
- vol.Required(CONF_API_SECRET): str,
- vol.Required(CONF_DOMAIN, DEFAULT_DOMAIN): str,
- }
- )
- ...
- async def async_step_user(self, user_input):
- """Handle the initial step."""
- if user_input is None:
- return self.async_show_form(
- step_id="user", data_schema=STEP_USER_DATA_SCHEMA
- )
- ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement