1
0
mirror of https://github.com/USA-RedDragon/badnest.git synced 2025-02-07 14:50:27 +00:00

Added authentication to get cameras request

This commit is contained in:
Nick Babenko 2020-03-10 08:28:33 +00:00
parent 7ab48d968e
commit c851671f33

View File

@ -109,7 +109,8 @@ class NestAPI():
try:
r = self._session.get(
f"{CAMERA_WEBAPI_BASE}/api/cameras."
+ "get_owned_and_member_of_with_properties"
+ "get_owned_and_member_of_with_properties",
headers={"Authorization": f"Basic {self._access_token}"},
)
for camera in r.json()["items"]: