Nodered entity no state class?

I got a error on energy:
" Unexpected state class
The following entities do not have the expected state class:

  • sensor.nodered_volkszaehler_bezug_2
  • sensor.nodered_volkszaehler_einspeisung_2"

In node red i think i did everything right, i guess

In
Developer Tools - Developer Tools
nodered.Volkszaehler_Bezug_Zaehler
sensor.nodered_volkszaehler_bezug_2
kWh
recorder
The state class ‘’ of this entity is not supported.



I think i solved it.

I edited

/config/customize.yaml

sensor.nodered_volkszaehler_bezug_2:
    state_class: total

sensor.nodered_volkszaehler_einspeisung_2:
    state_class: total