Remember Reolink config flow input (#125962)
This commit is contained in:
parent
b1b7c3f7c1
commit
6dadd467ab
1 changed files with 5 additions and 0 deletions
|
@ -205,6 +205,11 @@ class ReolinkFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||
if CONF_HOST not in user_input:
|
||||
user_input[CONF_HOST] = self._host
|
||||
|
||||
# remember input in case of a error
|
||||
self._username = user_input[CONF_USERNAME]
|
||||
self._password = user_input[CONF_PASSWORD]
|
||||
self._host = user_input[CONF_HOST]
|
||||
|
||||
host = ReolinkHost(self.hass, user_input, DEFAULT_OPTIONS)
|
||||
try:
|
||||
await host.async_init()
|
||||
|
|
Loading…
Add table
Reference in a new issue