Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.google.api Namespace Reference

Classes

class  AccessTokenAuthImpl
 
class  ApiAuthImpl
 
class  DeviceFlow
 
class  GoogleHybridAuth
 
class  InvalidCredential
 
class  OAuthError
 

Functions

DeviceFlow async_create_device_flow (HomeAssistant hass, str client_id, str client_secret, FeatureAccess access)
 
FeatureAccess get_feature_access (ConfigEntry config_entry)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
string DEVICE_AUTH_CREDS = "creds"
 
int EVENT_PAGE_SIZE = 100
 
int EXCHANGE_TIMEOUT_SECONDS = 60
 

Detailed Description

Client library for talking to Google APIs.

Function Documentation

◆ async_create_device_flow()

DeviceFlow homeassistant.components.google.api.async_create_device_flow ( HomeAssistant  hass,
str  client_id,
str  client_secret,
FeatureAccess   access 
)
Create a new Device flow.

Definition at line 165 of file api.py.

◆ get_feature_access()

FeatureAccess homeassistant.components.google.api.get_feature_access ( ConfigEntry  config_entry)
Return the desired calendar feature access.

Definition at line 158 of file api.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.google.api._LOGGER = logging.getLogger(__name__)
private

Definition at line 31 of file api.py.

◆ DEVICE_AUTH_CREDS

string homeassistant.components.google.api.DEVICE_AUTH_CREDS = "creds"

Definition at line 35 of file api.py.

◆ EVENT_PAGE_SIZE

int homeassistant.components.google.api.EVENT_PAGE_SIZE = 100

Definition at line 33 of file api.py.

◆ EXCHANGE_TIMEOUT_SECONDS

int homeassistant.components.google.api.EXCHANGE_TIMEOUT_SECONDS = 60

Definition at line 34 of file api.py.