Skip to content

Releases: GuyKh/py-air-sviva-api

0.0.4 - correct AQI calculation and use API native index endpoint

Choose a tag to compare

@GuyKh GuyKh released this 28 Jun 09:30

What's Changed

  • fix: correct AQI calculation and use API native index endpoint by @GuyKh in #16

Full Changelog: 0.0.3...0.0.4

0.0.3 - AQI and ignore invalid values

Choose a tag to compare

@GuyKh GuyKh released this 27 Jun 04:04

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

Choose a tag to compare

@GuyKh GuyKh released this 24 Jun 15:59
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

Choose a tag to compare

@GuyKh GuyKh released this 22 Jun 08:27

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

  • @renovate[bot] made their first contribution in #2
  • @GuyKh made their first contribution in #1

Full Changelog: https://github.com/GuyKh/py-air-sviva-api/commits/0.0.1