Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.yale.gateway.YaleGateway Class Reference
Inheritance diagram for homeassistant.components.yale.gateway.YaleGateway:
[legend]
Collaboration diagram for homeassistant.components.yale.gateway.YaleGateway:
[legend]

Public Member Functions

None __init__ (self, Path config_path, ClientSession aiohttp_session, config_entry_oauth2_flow.OAuth2Session oauth_session)
 
Authentication async_authenticate (self)
 
str async_get_access_token (self)
 
None async_refresh_access_token_if_needed (self)
 

Public Attributes

 authentication
 

Private Attributes

 _oauth_session
 

Detailed Description

Handle the connection to Yale.

Definition at line 15 of file gateway.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.yale.gateway.YaleGateway.__init__ (   self,
Path  config_path,
ClientSession  aiohttp_session,
config_entry_oauth2_flow.OAuth2Session  oauth_session 
)
Init the connection.

Definition at line 18 of file gateway.py.

Member Function Documentation

◆ async_authenticate()

Authentication homeassistant.components.yale.gateway.YaleGateway.async_authenticate (   self)
Authenticate with the details provided to setup.

Definition at line 37 of file gateway.py.

◆ async_get_access_token()

str homeassistant.components.yale.gateway.YaleGateway.async_get_access_token (   self)
Get access token.

Definition at line 28 of file gateway.py.

◆ async_refresh_access_token_if_needed()

None homeassistant.components.yale.gateway.YaleGateway.async_refresh_access_token_if_needed (   self)
Refresh the access token if needed.

Definition at line 33 of file gateway.py.

Member Data Documentation

◆ _oauth_session

homeassistant.components.yale.gateway.YaleGateway._oauth_session
private

Definition at line 26 of file gateway.py.

◆ authentication

homeassistant.components.yale.gateway.YaleGateway.authentication

Definition at line 40 of file gateway.py.


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