Remember user and hub after input in ConfigFlow (#66608)

This commit is contained in:
Mick Vleeshouwer 2022-02-21 10:56:20 -08:00 committed by GitHub
parent 76149876ab
commit 2456d8a401
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,6 +65,9 @@ class ConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
errors = {}
if user_input:
self._default_user = user_input[CONF_USERNAME]
self._default_hub = user_input[CONF_HUB]
try:
await self.async_validate_input(user_input)
except TooManyRequestsException: