Make onvif username optional (#39415)
parent
159f6750d7
commit
f7e6b060a7
|
@ -169,14 +169,15 @@ class OnvifFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
self.onvif_config[CONF_PASSWORD] = user_input[CONF_PASSWORD]
|
self.onvif_config[CONF_PASSWORD] = user_input[CONF_PASSWORD]
|
||||||
return await self.async_step_profiles()
|
return await self.async_step_profiles()
|
||||||
|
|
||||||
# Password is optional and default empty due to some cameras not
|
# Username and Password are optional and default empty
|
||||||
# allowing you to change ONVIF user settings.
|
# due to some cameras not allowing you to change ONVIF user settings.
|
||||||
# See https://github.com/home-assistant/core/issues/35904
|
# See https://github.com/home-assistant/core/issues/39182
|
||||||
|
# and https://github.com/home-assistant/core/issues/35904
|
||||||
return self.async_show_form(
|
return self.async_show_form(
|
||||||
step_id="auth",
|
step_id="auth",
|
||||||
data_schema=vol.Schema(
|
data_schema=vol.Schema(
|
||||||
{
|
{
|
||||||
vol.Required(CONF_USERNAME): str,
|
vol.Optional(CONF_USERNAME, default=""): str,
|
||||||
vol.Optional(CONF_PASSWORD, default=""): str,
|
vol.Optional(CONF_PASSWORD, default=""): str,
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue