python-chargepoint 2.3.0__tar.gz → 2.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/PKG-INFO +1 -1
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/pyproject.toml +1 -1
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/python_chargepoint/client.py +7 -0
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/LICENSE +0 -0
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/README.md +0 -0
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/python_chargepoint/__init__.py +0 -0
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/python_chargepoint/__main__.py +0 -0
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/python_chargepoint/constants.py +0 -0
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/python_chargepoint/exceptions.py +0 -0
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/python_chargepoint/global_config.py +0 -0
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/python_chargepoint/session.py +0 -0
- {python_chargepoint-2.3.0 → python_chargepoint-2.3.1}/python_chargepoint/types.py +0 -0
|
@@ -129,6 +129,13 @@ class ChargePoint:
|
|
|
129
129
|
_LOGGER.debug("[%s] %s", method, url)
|
|
130
130
|
headers = {**self._request_headers, **kwargs.pop("headers", {})}
|
|
131
131
|
response = await self._session.request(method, url, headers=headers, **kwargs)
|
|
132
|
+
|
|
133
|
+
# ChargePoint servers return coulomb_sess with Max-Age=7200 on every response.
|
|
134
|
+
# Re-set it without expiry so the cookie jar never evicts it.
|
|
135
|
+
refreshed = response.cookies.get(COULOMB_SESSION)
|
|
136
|
+
if refreshed and refreshed.value:
|
|
137
|
+
self._set_coulomb_token(refreshed.value)
|
|
138
|
+
|
|
132
139
|
_LOGGER.debug("Status: %d", response.status)
|
|
133
140
|
_LOGGER.debug("Request Headers: %s", response.request_info.headers)
|
|
134
141
|
_LOGGER.debug("Response Headers: %s", response.headers)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|