mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Fix oauth2 template by updating outdated method name (#39486)
This commit is contained in:
parent
a1678368cf
commit
09efbc569f
@ -52,7 +52,7 @@ class AsyncConfigEntryAuth(my_pypi_package.AbstractAuth):
|
||||
|
||||
async def async_get_access_token(self):
|
||||
"""Return a valid access token."""
|
||||
if not self._oauth_session.is_valid:
|
||||
if not self._oauth_session.valid_token:
|
||||
await self._oauth_session.async_ensure_token_valid()
|
||||
|
||||
return self._oauth_session.token
|
||||
|
Loading…
x
Reference in New Issue
Block a user