Skip to content

v0.6.26 — Corrupt cache no longer blocks setup (#33)

Choose a tag to compare

@TommiG1 TommiG1 released this 26 Jun 22:06

Summary

Fixes a startup crash when the newest local dataset ZIP is unreadable (truncated download or portal error body saved as a .zip). Reported for a VW ID.3 after HA restart (#33).

Cache restore

  • async_restore_from_cache now walks cached ZIPs newest-first, drops unreadable files, and tries the next older dataset instead of failing setup.
  • Corrupt cache entries are deleted automatically with a warning in the log.

Download path

  • Portal ZIPs are parsed before they are written to the local cache, so invalid bytes never poison /config/cupra_eu_data_act_cache/.

Test plan

  • Update to v0.6.26 and restart HA (or reload the integration)
  • With a corrupt newest cache ZIP: integration should start, log a warning, delete the bad file, and use the next readable cache or fetch fresh data
  • After a successful download, verify /config/cupra_eu_data_act_cache/ only contains valid ZIPs