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:
parent
7ab48d968e
commit
c851671f33
@ -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"]:
|
||||
|
Loading…
x
Reference in New Issue
Block a user