User eager task in github config flow (#117066)

This commit is contained in:
Erik Montnemery 2024-05-08 11:25:57 +02:00 committed by GitHub
parent dc1aba0a05
commit fd8c36d93b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 15 deletions

View file

@ -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():