Home Assistant Unofficial Reference 2024.12.1
const.py
Go to the documentation of this file.
1 """Constants used by the Nest component."""
2 
3 DOMAIN = "nest"
4 DATA_SDM = "sdm"
5 DATA_SUBSCRIBER = "subscriber"
6 DATA_DEVICE_MANAGER = "device_manager"
7 
8 WEB_AUTH_DOMAIN = DOMAIN
9 INSTALLED_AUTH_DOMAIN = f"{DOMAIN}.installed"
10 
11 CONF_PROJECT_ID = "project_id"
12 CONF_TOPIC_NAME = "topic_name"
13 CONF_SUBSCRIPTION_NAME = "subscription_name"
14 CONF_SUBSCRIBER_ID = "subscriber_id" # Old format
15 CONF_SUBSCRIBER_ID_IMPORTED = "subscriber_id_imported"
16 CONF_CLOUD_PROJECT_ID = "cloud_project_id"
17 
18 CONNECTIVITY_TRAIT_OFFLINE = "OFFLINE"
19 
20 SIGNAL_NEST_UPDATE = "nest_update"
21 
22 # For the Google Nest Device Access API
23 OAUTH2_AUTHORIZE = (
24  "https://nestservices.google.com/partnerconnections/{project_id}/auth"
25 )
26 OAUTH2_TOKEN = "https://www.googleapis.com/oauth2/v4/token"
27 SDM_SCOPES = [
28  "https://www.googleapis.com/auth/sdm.service",
29  "https://www.googleapis.com/auth/pubsub",
30 ]
31 API_URL = "https://smartdevicemanagement.googleapis.com/v1"