core icon indicating copy to clipboard operation
core copied to clipboard

"The unit changed" repair for statistics sensors

Open samuelolteanu opened this issue 5 months ago • 2 comments

The problem

Captură de ecran 2024-09-26 211541

Some platform: statistics sensors will trigger a repair called "The unit changed" when unit of measurement is "". For example a change sensor will output an empty unit of measurement when displaying "0" for some time. This is an old behavior, what is different is the new repairs spaming the notification. Captură de ecran 2024-09-26 211520

What version of Home Assistant Core has the issue?

2024.10.0b0

What was the last working version of Home Assistant Core?

2024.9.x

What type of installation are you running?

Home Assistant OS

Integration causing the issue

repair

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

sensor:
  - platform: statistics
    name: "stove_power_change"
    entity_id: sensor.putere_plita_electrica
    state_characteristic: change
    max_age:
      seconds: 10

Anything in the logs that might be useful for us?

No response

Additional information

No response

samuelolteanu avatar Sep 26 '24 18:09 samuelolteanu