Device_class: battery - icon stopped changing

Since 2020.10 my battery level sensors have static icon.
Earlier the icon depended on state, now it is always same:
image
Code:

sensor:
  - platform: template
    sensors:
      test_battery_level:
        unit_of_measurement: '%'
        device_class: battery
        value_template: "{{ states('input_number.test_level_1') }}"

Same here for all my battery sensors. Did you open an issue on GitHub?

Not yet… I believed that the issue is TOO visible and someone already did it…
I myself just updated HA and then realized the bug immediately.

Didn’t saw it before you mentioned it :sweat_smile:

The fix is coming. Hopefully we see it in 2021.10.7…

seems not. ah well. not end of the world

Fixed now in 2021.11.1…

yup - noted.