github pippyn/Home-Assistant-Sensor-Afvalbeheer v6.5.35

5 hours ago

What's Changed

  • Fix BurgerPortaal HTTP 403 failures by identifying requests with an honest Afvalbeheer User-Agent instead of the default Python requests User-Agent. No additional dependencies or browser impersonation are needed.
  • Check HTTP status before parsing JSON, so blocked requests and server errors produce meaningful errors instead of JSON parsing failures.
  • Preserve cached authentication and address data, retain recovery from rejected refresh tokens, and stop fetching when authentication or address lookup fails.
  • Add 15 regression tests covering request headers, cached credentials, rejected refresh tokens, HTTP failures and preservation of existing collection data.

Upgrade notes

  • Restart Home Assistant after updating. No configuration changes are required.

Validation

  • All 91 tests passed.
  • Python compilation and metadata/translation JSON validation passed.
  • Live Assen API checks confirmed that the default requests User-Agent receives HTTP 403, while an integration-identifying User-Agent returns the address and 12 calendar entries successfully.

Full Changelog: v6.5.34...v6.5.35

Don't miss a new Home-Assistant-Sensor-Afvalbeheer release

NewReleases is sending notifications on new releases.