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

Public Member Functions

None __init__ (self, ClientSession websession, str access_token, str host)
 
str async_get_access_token (self)
 
Credentials async_get_creds (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 73 of file api.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.nest.api.AccessTokenAuthImpl.__init__ (   self,
ClientSession  websession,
str  access_token,
str  host 
)
Init the Nest client library auth implementation.

Definition at line 81 of file api.py.

Member Function Documentation

◆ async_get_access_token()

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

Definition at line 91 of file api.py.

◆ async_get_creds()

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

Definition at line 95 of file api.py.

Member Data Documentation

◆ _access_token

homeassistant.components.nest.api.AccessTokenAuthImpl._access_token
private

Definition at line 89 of file api.py.


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