Skip to content

Commit

Permalink
replaces the variable name (#166)
Browse files Browse the repository at this point in the history
* replaces the variable name

* Update const.py
  • Loading branch information
Ludy87 authored Jun 16, 2024
1 parent aa61278 commit 5f25c8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/pyecotrend_ista/const.py
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
8 changes: 4 additions & 4 deletions src/pyecotrend_ista/pyecotrend_ista.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

1 comment on commit 5f25c8c

@tr4nt0r
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just realized, the variable names of the token response and the demo token response are different, one is snake_case the other is camelCase, will have to fix this, otherwise the demo login won't work anymore, sorry, for introducing this bug. Will update the test data in the unittests accordingly.

Please sign in to comment.