Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google_mail.api.AsyncConfigEntryAuth Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, config_entry_oauth2_flow.OAuth2Session oauth2_session)
 
str access_token (self)
 
str check_and_refresh_token (self)
 
Resource get_resource (self)
 

Public Attributes

 oauth_session
 

Private Attributes

 _hass
 

Detailed Description

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

Definition at line 21 of file api.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.google_mail.api.AsyncConfigEntryAuth.__init__ (   self,
HomeAssistant  hass,
config_entry_oauth2_flow.OAuth2Session  oauth2_session 
)
Initialize Google Mail Auth.

Definition at line 24 of file api.py.

Member Function Documentation

◆ access_token()

str homeassistant.components.google_mail.api.AsyncConfigEntryAuth.access_token (   self)
Return the access token.

Definition at line 34 of file api.py.

◆ check_and_refresh_token()

str homeassistant.components.google_mail.api.AsyncConfigEntryAuth.check_and_refresh_token (   self)
Check the token.

Definition at line 38 of file api.py.

◆ get_resource()

Resource homeassistant.components.google_mail.api.AsyncConfigEntryAuth.get_resource (   self)
Get current resource.

Definition at line 63 of file api.py.

Member Data Documentation

◆ _hass

homeassistant.components.google_mail.api.AsyncConfigEntryAuth._hass
private

Definition at line 30 of file api.py.

◆ oauth_session

homeassistant.components.google_mail.api.AsyncConfigEntryAuth.oauth_session

Definition at line 31 of file api.py.


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