Skip to content

Commit

Permalink
Probably fix for piazetta login
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwolsink committed Oct 15, 2023
1 parent 5fed7da commit c9028b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py_agua_iot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
API_PATH_DEVICE_BUFFER_READING = "/deviceGetBufferReading"
API_PATH_DEVICE_JOB_STATUS = "/deviceJobStatus/"
API_PATH_DEVICE_WRITING = "/deviceRequestWriting"
API_LOGIN_APPLICATION_VERSION = "1.6.0"
API_LOGIN_APPLICATION_VERSION = "1.9.5"
DEFAULT_TIMEOUT_VALUE = 5

HEADER_ACCEPT = "application/json, text/javascript, */*; q=0.01"
Expand Down Expand Up @@ -205,6 +205,8 @@ def login(self):
extra_login_headers = {
"applicationversion": self.api_login_application_version,
"url": API_PATH_LOGIN.lstrip("/"),
"userid": "null",
"aguaid": "null",
}
headers.update(extra_login_headers)
url = self.login_api_url
Expand Down

0 comments on commit c9028b8

Please sign in to comment.