mirror of
https://github.com/USA-RedDragon/badnest.git
synced 2025-01-18 19:20:44 +00:00
Update api.py
This commit is contained in:
parent
2270f2e9f4
commit
d66560e8bb
@ -193,7 +193,7 @@ class NestAPI():
|
||||
'Referer': 'https://home.nest.com/',
|
||||
'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)
|
||||
sensor_data = r.json()["items"][0]
|
||||
self.device_data[camera]['name'] = \
|
||||
|
Loading…
x
Reference in New Issue
Block a user