Problem with sensor entitie

Source: components/energy/
Integration: Énergie (documentation, issues)
First occurred: 15:10:14 (1 occurrences)
Last logged: 15:10:14

Found unexpected state_class None for sensor.linky_energy_kwh

But I don’t think I made a mistake.

- platform: template
        friendly_name: 'index KWh'
        unit_of_measurement: 'kWh'
        value_template: "{{ states('sensor.index') | float / 1000 }}"
        icon_template: mdi:gauge
        device_class: energy
          state_class: total_increasing

Please help me… :thinking:

Why do you need attribute_templates, i would remove it and move state class to upper section (in terms of indentation)

Edit: check here State_class: "measurement" for platform: template - #2 by ardysusilo