Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
Fix authorization problems
Browse files Browse the repository at this point in the history
  • Loading branch information
tomeko12 committed May 8, 2023
1 parent 6238608 commit 2ec7c78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='pyelectroluxconnect',
version='0.3.14',
version='0.3.15',
description='Interface for Electrolux Connectivity Platform API',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
4 changes: 3 additions & 1 deletion src/pyelectroluxconnect/Session.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def _headers(self):
headers = {
"x-ibm-client-id": urls.getEcpClientId(self._region),
"x-api-key": urls.getEcpClientId(self._region),
"Content-Type": "application/json"
"Content-Type": "application/json",
"user-agent": "okhttp/4.9.1"
}
if self._sessionToken:
headers["session_token"] = self._sessionToken
Expand All @@ -153,6 +154,7 @@ def _createToken(self):
_payload = {
"brand": urls.getEcpClientBrand(self._region),
"country": self._country,
"fields": {},
"deviceId": self._deviceId,
"password": self._password,
"username": self._username
Expand Down

0 comments on commit 2ec7c78

Please sign in to comment.