mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 01:07:10 +00:00
Remember user and hub after input in ConfigFlow (#66608)
This commit is contained in:
parent
76149876ab
commit
2456d8a401
@ -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…
x
Reference in New Issue
Block a user