Skip to content

Commit

Permalink
name and scan_interval is required
Browse files Browse the repository at this point in the history
  • Loading branch information
leeyuentuen committed Apr 21, 2024
1 parent fa2adec commit 90b17cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/alfen_wallbox/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ async def async_step_user(self, user_input=None):
vol.Required(CONF_HOST): str,
vol.Required(CONF_USERNAME, default="admin"): str,
vol.Required(CONF_PASSWORD): str,
vol.Optional(CONF_NAME): str,
vol.Optional(CONF_SCAN_INTERVAL, default=5): int
vol.Required(CONF_NAME): str,
vol.Required(CONF_SCAN_INTERVAL, default=5): int
})
)
return await self._create_device(user_input[CONF_HOST], user_input[CONF_NAME], user_input[CONF_USERNAME], user_input[CONF_PASSWORD], user_input[CONF_SCAN_INTERVAL])
Expand Down

0 comments on commit 90b17cb

Please sign in to comment.