2018-06-13 15:14:52 +00:00
|
|
|
"""Constants used by the Nest component."""
|
2020-10-21 08:17:49 +00:00
|
|
|
|
2019-07-31 19:25:30 +00:00
|
|
|
DOMAIN = "nest"
|
2020-10-21 08:17:49 +00:00
|
|
|
DATA_SDM = "sdm"
|
2020-11-30 08:19:42 +00:00
|
|
|
DATA_SUBSCRIBER = "subscriber"
|
2022-05-20 14:47:18 +00:00
|
|
|
DATA_DEVICE_MANAGER = "device_manager"
|
2021-11-15 00:08:22 +00:00
|
|
|
DATA_NEST_CONFIG = "nest_config"
|
|
|
|
|
2022-01-18 06:17:23 +00:00
|
|
|
WEB_AUTH_DOMAIN = DOMAIN
|
|
|
|
INSTALLED_AUTH_DOMAIN = f"{DOMAIN}.installed"
|
|
|
|
|
2021-11-15 00:08:22 +00:00
|
|
|
CONF_PROJECT_ID = "project_id"
|
|
|
|
CONF_SUBSCRIBER_ID = "subscriber_id"
|
2022-06-15 14:15:53 +00:00
|
|
|
CONF_SUBSCRIBER_ID_IMPORTED = "subscriber_id_imported"
|
2021-11-30 06:41:29 +00:00
|
|
|
CONF_CLOUD_PROJECT_ID = "cloud_project_id"
|
2020-10-21 08:17:49 +00:00
|
|
|
|
2022-09-29 02:23:11 +00:00
|
|
|
CONNECTIVITY_TRAIT_OFFLINE = "OFFLINE"
|
|
|
|
|
2020-10-21 08:17:49 +00:00
|
|
|
SIGNAL_NEST_UPDATE = "nest_update"
|
|
|
|
|
|
|
|
# For the Google Nest Device Access API
|
|
|
|
OAUTH2_AUTHORIZE = (
|
|
|
|
"https://nestservices.google.com/partnerconnections/{project_id}/auth"
|
|
|
|
)
|
|
|
|
OAUTH2_TOKEN = "https://www.googleapis.com/oauth2/v4/token"
|
|
|
|
SDM_SCOPES = [
|
|
|
|
"https://www.googleapis.com/auth/sdm.service",
|
|
|
|
"https://www.googleapis.com/auth/pubsub",
|
|
|
|
]
|
|
|
|
API_URL = "https://smartdevicemanagement.googleapis.com/v1"
|