Skip to content

V2.8.6

Choose a tag to compare

@grexha grexha released this 05 Sep 09:19
· 200 commits to main since this release

[2.8.6] - 2026-09-05

Das neue Release korrigiert zwei Fehler auf, die bei Korrekturen zum Relase 2.8.4 aufgefallen sind.
Release 2.8.4 oder 2.8.6 müssen vor Update auf Home Assistant Core 2026.9.0 eingespielt werden.
This new release fixes two issues identified during the corrections for release 2.8.4.
Release 2.8.4 or 2.8.6 must be installed before updating to Home Assistant Core 2026.9.0.

Bug Fixes
The 2.8.4 energy-offset-persistence fix fell short in one case: _apply_persisted_energy_state()'s "discard the whole snapshot if it's lower than the already-restored value" guard (added in 2.8.4 to stop a stale, never-updated cycle_energy_persist.json from regressing a correctly Recorder-restored value) compared the coordinator JSON's energy_value directly against self._energy_value — but these aren't always on the same basis: when the JSON predates the applied_offset field (old format), its energy_value is the raw value (offset not yet applied), while self._energy_value from restore_state() may already include an offset applied in a previous session. Comparing a raw coordinator value against an offset-inclusive restored value made an up-to-date snapshot look "older/lower" than it really was, so the whole snapshot — including the applied_offset reset that would have triggered _apply_energy_offset() to reapply the configured offset — was discarded, silently leaving the energy value stuck without its offset after every restart. The comparison now strips the previously-applied offset from self._energy_value before comparing whenever the JSON lacks applied_offset, so a genuinely fresher raw reading is recognized as such and the offset gets reapplied on top of it.

[2.8.5] - 2026-09-05
Sub-device sensors still failed on Home Assistant < 2026.9 after the 2.8.4 fix: the 2.8.4 fix replaced the old via_device (identifiers-tuple) with via_device_id (device-registry UUID string) in build_subdevice_info() — correctly targeting HA 2026.9+, which removed via_device and raises a hard RuntimeError for it. However, HA versions before 2026.9 do not know via_device_id and raised their own TypeError: DeviceRegistry.async_get_or_create() got an unexpected keyword argument 'via_device_id' instead — causing every sub-device entity to fail on older installations. build_subdevice_info() (utils.py) now detects the running HA version once at import time (_HA_SUPPORTS_VIA_DEVICE_ID) and uses via_device_id on HA ≥ 2026.9 while falling back to the old via_device (tuple) on HA < 2026.9, so sub-device entities are registered correctly on both version families.
Full Changelog: V2.8.4...V2.8.6