Skip to content

v1.2.1

Choose a tag to compare

@mbillow mbillow released this 28 Mar 00:30

Bug Fixes

Entities becoming unavailable after ~2 hours (Fixes #81)

ChargePoint's API occasionally returns a refreshed coulomb_sess cookie with a Max-Age=7200. When this happened, aiohttp would overwrite the stored cookie with the server's expiring version, eventually evicting it and causing all API calls to fail with an authentication error until the integration was reloaded.

Two fixes are included:

  • python-chargepoint 2.3.1 — the library now strips the server-supplied expiry when it receives a refreshed coulomb_sess cookie, so it can never be evicted mid-session.
  • Token persistence — after each coordinator poll, if the session token has changed the integration writes the updated value back to the config entry. This ensures a HA restart always starts with the most recent token rather than the one originally provided at setup time.