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

Public Member Functions

None __init__ (self, ClientSession websession, config_entry_oauth2_flow.OAuth2Session oauth_session, str client_id, str client_secret)
 
str async_get_access_token (self)
 
Credentials async_get_creds (self)
 

Private Attributes

 _client_id
 
 _client_secret
 
 _oauth_session
 

Detailed Description

Provide Google Nest Device Access authentication tied to an OAuth2 based config entry.

Definition at line 31 of file api.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.nest.api.AsyncConfigEntryAuth.__init__ (   self,
ClientSession  websession,
config_entry_oauth2_flow.OAuth2Session  oauth_session,
str  client_id,
str  client_secret 
)
Initialize Google Nest Device Access auth.

Definition at line 34 of file api.py.

Member Function Documentation

◆ async_get_access_token()

str homeassistant.components.nest.api.AsyncConfigEntryAuth.async_get_access_token (   self)
Return a valid access token for SDM API.

Definition at line 47 of file api.py.

◆ async_get_creds()

Credentials homeassistant.components.nest.api.AsyncConfigEntryAuth.async_get_creds (   self)
Return an OAuth credential for Pub/Sub Subscriber.

Definition at line 52 of file api.py.

Member Data Documentation

◆ _client_id

homeassistant.components.nest.api.AsyncConfigEntryAuth._client_id
private

Definition at line 44 of file api.py.

◆ _client_secret

homeassistant.components.nest.api.AsyncConfigEntryAuth._client_secret
private

Definition at line 45 of file api.py.

◆ _oauth_session

homeassistant.components.nest.api.AsyncConfigEntryAuth._oauth_session
private

Definition at line 43 of file api.py.


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