Advertisement
drinfernoo

Untitled

Jun 1st, 2021
1,004
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.48 KB | None | 0 0
  1. STEP_USER_DATA_SCHEMA = vol.Schema(
  2.     {
  3.         vol.Optional(CONF_NAME, DEFAULT_NAME): str,
  4.         vol.Required(CONF_API_KEY): str,
  5.         vol.Required(CONF_API_SECRET): str,
  6.         vol.Required(CONF_DOMAIN, DEFAULT_DOMAIN): str,
  7.     }
  8. )
  9.  
  10. ...
  11.  
  12. async def async_step_user(self, user_input):
  13.     """Handle the initial step."""
  14.     if user_input is None:
  15.         return self.async_show_form(
  16.             step_id="user", data_schema=STEP_USER_DATA_SCHEMA
  17.         )
  18.  
  19. ...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement