Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.cloud.account_link.CloudOAuth2Implementation Class Reference
Inheritance diagram for homeassistant.components.cloud.account_link.CloudOAuth2Implementation:
[legend]
Collaboration diagram for homeassistant.components.cloud.account_link.CloudOAuth2Implementation:
[legend]

Public Member Functions

None __init__ (self, HomeAssistant hass, str service)
 
str async_generate_authorize_url (self, str flow_id)
 
dict async_resolve_external_data (self, Any external_data)
 
str domain (self)
 
str name (self)
 

Public Attributes

 hass
 
 service
 

Private Member Functions

dict _async_refresh_token (self, dict token)
 

Detailed Description

Cloud implementation of the OAuth2 flow.

Definition at line 89 of file account_link.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.cloud.account_link.CloudOAuth2Implementation.__init__ (   self,
HomeAssistant  hass,
str  service 
)
Initialize cloud OAuth2 implementation.

Definition at line 92 of file account_link.py.

Member Function Documentation

◆ _async_refresh_token()

dict homeassistant.components.cloud.account_link.CloudOAuth2Implementation._async_refresh_token (   self,
dict  token 
)
private
Refresh a token.

Definition at line 140 of file account_link.py.

◆ async_generate_authorize_url()

str homeassistant.components.cloud.account_link.CloudOAuth2Implementation.async_generate_authorize_url (   self,
str  flow_id 
)
Generate a url for the user to authorize.

Definition at line 107 of file account_link.py.

◆ async_resolve_external_data()

dict homeassistant.components.cloud.account_link.CloudOAuth2Implementation.async_resolve_external_data (   self,
Any  external_data 
)
Resolve external data to tokens.

Definition at line 134 of file account_link.py.

◆ domain()

str homeassistant.components.cloud.account_link.CloudOAuth2Implementation.domain (   self)
Domain that is providing the implementation.

Definition at line 103 of file account_link.py.

◆ name()

str homeassistant.components.cloud.account_link.CloudOAuth2Implementation.name (   self)
Name of the implementation.

Definition at line 98 of file account_link.py.

Member Data Documentation

◆ hass

homeassistant.components.cloud.account_link.CloudOAuth2Implementation.hass

Definition at line 94 of file account_link.py.

◆ service

homeassistant.components.cloud.account_link.CloudOAuth2Implementation.service

Definition at line 95 of file account_link.py.


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