0.7.1
Release 0.7.1 - Patch release
- Fix: Return newest-first events from the API by default (use
sort=-date) so real-timeAUTO_LOCpings are not hidden behind older events. - Fix:
Device.refresh()now compares timestamps from both the assetlastLocationand the latest event and uses the freshest source (avoids relying on stalelocationLastReported). - Add: Diagnostic troubleshooting scripts (
scripts/poll_locations.py,scripts/diagnose_staleness.py,scripts/probe_events.py) to help investigate API data freshness. - Add:
scripts/credentials.pyhelper for consistent and robust.credentialsparsing and improved script error messages. - Fix: Pre-commit hook (
.git/hooks/pre-commit) now falls back gracefully if the venv Python is broken, allowing commits while the local venv is fixed. - Style/Quality: Fixed linting and formatting issues; all tests now pass (105 tests) and pre-commit checks succeed locally.
- Misc: Documentation and minor refactors; improved error handling in scripts.
- Fix: Minor linting and formatting cleanups across scripts and library code.
- Fix: Improve robustness of script credential loading and module imports when run directly.
- Quality: All tests and pre-commit checks pass locally.
Notes:
- The issue where locations visible in the provider app were more recent than the integration is resolved by prioritizing newest events and comparing timestamps.
- Recommended next step for maintainers: consider monitoring the
/assets/{id}/eventsresponses for event type distribution (e.g.,AUTO_LOCfrequency) and consider exposing a configuration to preferAUTO_LOCevents explicitly if provider behavior changes.