Skip to content

v0.3.8

Choose a tag to compare

@italo-lombardi italo-lombardi released this 21 Jun 11:24
73b0bc4

Fixed

  • Sensor: AvailabilitySensor.extra_state_attributes['per_device'] values are now rounded to 1 decimal (matching native_value). Previously the per-device floats were unrounded — the rolling-window numerator grew by ~SCAN_INTERVAL seconds per coordinator tick, so the unrounded value drifted by tens of thousandths of a percent every tick — defeating WriteDedupMixin (the attribute dict comparison always saw a diff) and producing one recorder row per tick on every *_availability_today sensor (~2880/day each). The group-level native_value was already 1-decimal-rounded; this matches the attribute precision to it. Public API unchanged: state is still a 1-decimal float. Fixes v5.5 audit finding F-EA-1 (1.45M states rows over 50 days).