User eager task in github config flow (#117066)
This commit is contained in:
parent
dc1aba0a05
commit
fd8c36d93b
2 changed files with 30 additions and 15 deletions
|
@ -148,9 +148,7 @@ class GitHubConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||
return self.async_abort(reason="could_not_register")
|
||||
|
||||
if self.login_task is None:
|
||||
self.login_task = self.hass.async_create_task(
|
||||
_wait_for_login(), eager_start=False
|
||||
)
|
||||
self.login_task = self.hass.async_create_task(_wait_for_login())
|
||||
|
||||
if self.login_task.done():
|
||||
if self.login_task.exception():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue