hass-core/homeassistant/components/nest/const.py
Allen Porter 52b66e88c7
Update Nest integration to support Google Nest Device Access (new API) ()
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
2020-10-21 10:17:49 +02:00

17 lines
487 B
Python

"""Constants used by the Nest component."""
DOMAIN = "nest"
DATA_SDM = "sdm"
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"