Releases: GuyKh/py-air-sviva-api
Releases · GuyKh/py-air-sviva-api
Release list
0.0.4 - correct AQI calculation and use API native index endpoint
What's Changed
Full Changelog: 0.0.3...0.0.4
0.0.3 - AQI and ignore invalid values
What's Changed
- fix: relax orjson lower bound to 3.11.8 for HA Core compatibility by @GuyKh in #11
- feat: add Israeli AQI calculator with breakpoint tables and client integration by @GuyKh in #14
- fix: filter out -9999 sentinel values from API channel readings by @GuyKh in #15
Full Changelog: 0.0.2...0.0.3
0.0.2 - JWT expiration fix
fix: replace broken JWT-decay check with time-based token refresh
The _ensure_auth_headers() method used is_jwt_expired() to decide when to refresh the auth token. But _auth_token stores the response body '60' (not a JWT), so is_jwt_expired('60') always returned False and refresh_token() was never called. After the X-Access-Token cookie expired (~1 hour), all subsequent API calls failed with empty HTTP 200 responses.
Fix: Track _last_token_refresh timestamp and refresh every 55 minutes (TOKEN_REFRESH_INTERVAL=3300), well under the cookie's 1-hour expiry.
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
0.0.1
What's Changed
- Configure Renovate by @renovate[bot] in #2
- feat: first commit by @GuyKh in #1
- Update dependency mypy to v2 by @renovate[bot] in #8
- Update actions/checkout action to v7 by @renovate[bot] in #7
- Update astral-sh/setup-uv action to v8 - autoclosed by @renovate[bot] in #6
- Update dependency pytest-asyncio to v1 by @renovate[bot] in #9
New Contributors
Full Changelog: https://github.com/GuyKh/py-air-sviva-api/commits/0.0.1