Skip to content

0.3.6-beta.1 — Recorder-friendly writes

Pre-release
Pre-release

Choose a tag to compare

@italo-lombardi italo-lombardi released this 07 Jun 18:06

0.3.6-beta.1 — Recorder-friendly writes

Changed

  • Sensor / Binary Sensor: skip async_write_ha_state when the published value, extra_state_attributes, AND available all match the previously published triple. Coordinator continues to tick every 30 s — only the redundant re-publish is suppressed.
  • Affected entities (per group + combined-group counterparts): Offline Count, Offline Entities, Low Battery, Low Battery Count, Group Summary, Recently Offline, Recently Recovered, Availability (all windows), Any Offline (binary).
  • First write after startup always goes through (cache starts unset). Coordinator failures flipping available from True → False still publish, so entities go unavailable as expected. Cache reset on entity removal so a re-added instance always publishes its first state.

Why

Steady-state networks generated a recorder row per sensor per coordinator tick (every 30 s) regardless of whether anything changed. Recorder rows now only land when the published triple actually changes.

Tests

370 tests (was 343). 100% coverage across all integration modules including new write_dedup.py.

Notes

This is a beta release. Install via HACS by enabling pre-releases. Promote to stable 0.3.6 only after user-side verification feedback.

Full changelog: https://github.com/italo-lombardi/Home-Assistant-EntityAvailability/blob/0.3.6-beta.1/CHANGELOG.md