Remember user and hub after input in ConfigFlow (#66608)
This commit is contained in:
parent
76149876ab
commit
2456d8a401
1 changed files with 3 additions and 0 deletions
|
@ -65,6 +65,9 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
|
||||||
errors = {}
|
errors = {}
|
||||||
|
|
||||||
if user_input:
|
if user_input:
|
||||||
|
self._default_user = user_input[CONF_USERNAME]
|
||||||
|
self._default_hub = user_input[CONF_HUB]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await self.async_validate_input(user_input)
|
await self.async_validate_input(user_input)
|
||||||
except TooManyRequestsException:
|
except TooManyRequestsException:
|
||||||
|
|
Loading…
Add table
Reference in a new issue