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

Public Member Functions

None __init__ (self, aiohttp.ClientSession websession, config_entry_oauth2_flow.OAuth2Session oauth_session)
 
str async_get_access_token (self)
 

Private Attributes

 _session
 

Detailed Description

Provide Google Photos authentication tied to an OAuth2 based config entry.

Definition at line 12 of file api.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.google_photos.api.AsyncConfigEntryAuth.__init__ (   self,
aiohttp.ClientSession  websession,
config_entry_oauth2_flow.OAuth2Session  oauth_session 
)
Initialize AsyncConfigEntryAuth.

Definition at line 15 of file api.py.

Member Function Documentation

◆ async_get_access_token()

str homeassistant.components.google_photos.api.AsyncConfigEntryAuth.async_get_access_token (   self)
Return a valid access token.

Definition at line 24 of file api.py.

Member Data Documentation

◆ _session

homeassistant.components.google_photos.api.AsyncConfigEntryAuth._session
private

Definition at line 22 of file api.py.


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