Reolink config flow fix custom port when USE_HTTPS not selected (#91137)

give USE_HTTPS a default
This commit is contained in:
starkillerOG 2023-04-10 18:44:25 +02:00 committed by GitHub
parent 86fe0c9683
commit e8142987a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -178,7 +178,7 @@ class ReolinkFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
data_schema = data_schema.extend(
{
vol.Optional(CONF_PORT): cv.positive_int,
vol.Optional(CONF_USE_HTTPS): bool,
vol.Required(CONF_USE_HTTPS, default=False): bool,
}
)