Skip to content

Commit 26d8e46

Browse files
committed
Fix 404 errors.
Adjust url prefix to omit trailing slash, since other parts of the code add their own trailing slashes
1 parent 9188c91 commit 26d8e46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nest/nest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
ACCESS_TOKEN_URL = 'https://www.googleapis.com/oauth2/v4/token?redirect_uri=https://www.google.com'
2424
AUTHORIZE_URL = 'https://nestservices.google.com/partnerconnections/{project_id}/auth?redirect_uri=https://www.google.com&access_type=offline&prompt=consent&client_id={client_id}&response_type=code&scope=https://www.googleapis.com/auth/sdm.service'
25-
API_URL = 'https://smartdevicemanagement.googleapis.com/v1/enterprises/{project_id}/'
25+
API_URL = 'https://smartdevicemanagement.googleapis.com/v1/enterprises/{project_id}'
2626
SIMULATOR_SNAPSHOT_URL = \
2727
'https://developer.nest.com' \
2828
'/simulator/api/v1/nest/devices/camera/snapshot'

0 commit comments

Comments
 (0)