1
0
mirror of https://github.com/USA-RedDragon/badnest.git synced 2025-01-18 18:40:42 +00:00

API: Set user_id properly

This commit is contained in:
Jacob McSwain 2019-10-19 16:53:04 -05:00
parent 6c809da4c0
commit 7e7b4b85de
No known key found for this signature in database
GPG Key ID: 59957AD09B94EDF5

View File

@ -19,7 +19,7 @@ class NestAPI:
r = self._session.post(
f"{API_URL}/session", json={"email": email, "password": password}
)
self.user_id = r.json()["userid"]
self._user_id = r.json()["userid"]
self._access_token = r.json()["access_token"]
def update(self):