Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.cloud.account_link Namespace Reference

Classes

class  CloudOAuth2Implementation
 

Functions

list[dict[str, Any]] _get_services (HomeAssistant hass)
 
list[config_entry_oauth2_flow.AbstractOAuth2Implementation] async_provide_implementation (HomeAssistant hass, str domain)
 
None async_setup (HomeAssistant hass)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
int CACHE_TIMEOUT = 3600
 
 CURRENT_PLAIN_VERSION
 
 CURRENT_VERSION = AwesomeVersion(HA_VERSION)
 
string DATA_SERVICES = "cloud_account_link_services"
 

Detailed Description

Account linking via the cloud.

Function Documentation

◆ _get_services()

list[dict[str, Any]] homeassistant.components.cloud.account_link._get_services ( HomeAssistant  hass)
private
Get the available services.

Definition at line 63 of file account_link.py.

◆ async_provide_implementation()

list[config_entry_oauth2_flow.AbstractOAuth2Implementation] homeassistant.components.cloud.account_link.async_provide_implementation ( HomeAssistant  hass,
str   domain 
)
Provide an implementation for a domain.

Definition at line 37 of file account_link.py.

◆ async_setup()

None homeassistant.components.cloud.account_link.async_setup ( HomeAssistant  hass)
Set up cloud account link.

Definition at line 30 of file account_link.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.cloud.account_link._LOGGER = logging.getLogger(__name__)
private

Definition at line 21 of file account_link.py.

◆ CACHE_TIMEOUT

int homeassistant.components.cloud.account_link.CACHE_TIMEOUT = 3600

Definition at line 20 of file account_link.py.

◆ CURRENT_PLAIN_VERSION

homeassistant.components.cloud.account_link.CURRENT_PLAIN_VERSION
Initial value:
1 = AwesomeVersion(
2  CURRENT_VERSION.string.removesuffix(f"{CURRENT_VERSION.modifier}")
3 )

Definition at line 24 of file account_link.py.

◆ CURRENT_VERSION

homeassistant.components.cloud.account_link.CURRENT_VERSION = AwesomeVersion(HA_VERSION)

Definition at line 23 of file account_link.py.

◆ DATA_SERVICES

string homeassistant.components.cloud.account_link.DATA_SERVICES = "cloud_account_link_services"

Definition at line 19 of file account_link.py.