From 5f25c8ced5d45005d173e05c2615871863dcb25f Mon Sep 17 00:00:00 2001 From: Ludy Date: Sun, 16 Jun 2024 12:50:57 +0200 Subject: [PATCH] replaces the variable name (#166) * replaces the variable name * Update const.py --- src/pyecotrend_ista/const.py | 2 +- src/pyecotrend_ista/pyecotrend_ista.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pyecotrend_ista/const.py b/src/pyecotrend_ista/const.py index 067fe50..c1de6bb 100644 --- a/src/pyecotrend_ista/const.py +++ b/src/pyecotrend_ista/const.py @@ -1,4 +1,4 @@ -VERSION = "3.2.2" +VERSION = "3.2.3" BASE_URL = "https://api.prod.eed.ista.com/" ACCOUNT_URL = BASE_URL + "account" diff --git a/src/pyecotrend_ista/pyecotrend_ista.py b/src/pyecotrend_ista/pyecotrend_ista.py index eabf2cd..69e50e3 100644 --- a/src/pyecotrend_ista/pyecotrend_ista.py +++ b/src/pyecotrend_ista/pyecotrend_ista.py @@ -152,10 +152,10 @@ def __login(self) -> str | None: token = self.loginhelper.getToken() if token: - self._accessToken = token["accessToken"] - self._accessTokenExpiresIn = token["accessTokenExpiresIn"] - self._refreshToken = token["refreshToken"] - return self.accessToken + self._accessToken = token["access_token"] + self._accessTokenExpiresIn = token["expires_in"] + self._refreshToken = token["refresh_token"] + return self._accessToken return None def __refresh(self) -> None: