Fix OctoPrint config flow schema (#58688)

pull/58705/head
Franck Nijhof 2021-10-29 14:07:25 +02:00 committed by GitHub
parent b3e7eeb020
commit a0d0e325e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -25,11 +25,11 @@ _LOGGER = logging.getLogger(__name__)
def _schema_with_defaults(username="", host="", port=80, path="/", ssl=False): def _schema_with_defaults(username="", host="", port=80, path="/", ssl=False):
return vol.Schema( return vol.Schema(
{ {
vol.Required(CONF_USERNAME, default=username): cv.string, vol.Required(CONF_USERNAME, default=username): str,
vol.Required(CONF_HOST, default=host): cv.string, vol.Required(CONF_HOST, default=host): str,
vol.Optional(CONF_PORT, default=port): cv.port, vol.Required(CONF_PORT, default=port): cv.port,
vol.Optional(CONF_PATH, default=path): cv.string, vol.Required(CONF_PATH, default=path): str,
vol.Optional(CONF_SSL, default=ssl): cv.boolean, vol.Required(CONF_SSL, default=ssl): bool,
}, },
extra=vol.ALLOW_EXTRA, extra=vol.ALLOW_EXTRA,
) )