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"
|
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"
|