Skip to content

v0.3.12 (beta)

Choose a tag to compare

@github-actions github-actions released this 08 Feb 22:29
· 74 commits to master since this release

Fixed

  • Inline reset respects offset: The inline period-boundary reset now correctly defers to the configured offset for cumulative sensors.
  • Early reset skipping other periods: Fixed return → continue bug that skipped remaining periods in the loop.
  • Delta entities deleted on reload: Delta sensor entities were incorrectly removed on every reload/restart.

Improved

  • Extracted base class: _BaseMaxMinSensor eliminates ~200 lines of duplicated code (sensor.py 382 → 179 lines).
  • Extracted shared methods: _compute_next_reset() and _schedule_single_reset() eliminate duplicated reset scheduling logic.
  • Configured initial enforcement: Initial max/min values enforced as floor/ceiling after restore.
  • Stale restore protection: Restored data without last_reset ignored when period already initialized.