Update Nest integration to support Google Nest Device Access (new API) (#41689)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
parent
9bc0509f28
commit
52b66e88c7
17 changed files with 1001 additions and 230 deletions
|
@ -1,2 +1,17 @@
|
|||
"""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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue