Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google.api.AccessTokenAuthImpl Class Reference
Inheritance diagram for homeassistant.components.google.api.AccessTokenAuthImpl:
[legend]
Collaboration diagram for homeassistant.components.google.api.AccessTokenAuthImpl:
[legend]

Public Member Functions

None __init__ (self, aiohttp.ClientSession websession, str access_token)
 
str async_get_access_token (self)
 

Private Attributes

 _access_token
 

Detailed Description

Authentication implementation used during config flow, without refresh.

This exists to allow the config flow to use the API before it has fully
created a config entry required by OAuth2Session. This does not support
refreshing tokens, which is fine since it should have been just created.

Definition at line 206 of file api.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.google.api.AccessTokenAuthImpl.__init__ (   self,
aiohttp.ClientSession  websession,
str  access_token 
)
Init the Google Calendar client library auth implementation.

Definition at line 214 of file api.py.

Member Function Documentation

◆ async_get_access_token()

str homeassistant.components.google.api.AccessTokenAuthImpl.async_get_access_token (   self)
Return the access token.

Definition at line 223 of file api.py.

Member Data Documentation

◆ _access_token

homeassistant.components.google.api.AccessTokenAuthImpl._access_token
private

Definition at line 221 of file api.py.


The documentation for this class was generated from the following file: