Long term statistics not working on some sensors

Hi,
I have two power sensors. The first one, called “Assorbimento Lab,” has the long-term statistics functioning, but the second one, called “Assorbimento Generale,” does not.
The only difference between the two is that I added the device class via “customize” for the second one.

any ideas?