Convert getting and removing access tokens to normal functions (#108670)
This commit is contained in:
parent
904032e944
commit
2eea658fd8
14 changed files with 98 additions and 124 deletions
|
@ -80,9 +80,7 @@ class AuthPhase:
|
|||
raise Disconnect from err
|
||||
|
||||
if (access_token := valid_msg.get("access_token")) and (
|
||||
refresh_token := await self._hass.auth.async_validate_access_token(
|
||||
access_token
|
||||
)
|
||||
refresh_token := self._hass.auth.async_validate_access_token(access_token)
|
||||
):
|
||||
conn = ActiveConnection(
|
||||
self._logger,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue