1
0
mirror of https://github.com/USA-RedDragon/badnest.git synced 2025-03-15 21:37:51 +00:00

Update api.py

This commit is contained in:
mastermc0 2020-04-16 21:52:16 +01:00 committed by GitHub
parent 6022adc4cf
commit 2270f2e9f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,7 +193,7 @@ class NestAPI():
'Referer': 'https://home.nest.com/', 'Referer': 'https://home.nest.com/',
'cookie': f"cztoken={self._access_token}" 'cookie': f"cztoken={self._access_token}"
} }
r = self._session.get(url=f"{CAMERA_WEBAPI_BASE}/api/cameras.get_with_properties?uuid="+camera r = self._session.get(url=f"{CAMERA_WEBAPI_BASE}/api/cameras.get_with_properties?uuid={camera}"
, headers=headers) , headers=headers)
sensor_data = r.json()["items"][0] sensor_data = r.json()["items"][0]
self.device_data[camera]['name'] = \ self.device_data[camera]['name'] = \