All Energy data lost after changing tarif (Eur/kWh) value

I changed the energy cost value in the Energy configuration (from a manual fixed value to an input_number) and now all historical energy data is lost. That -to say the least- not a very pleasant surprise. And I don’t know how to get it back.
Is this a #bug or a feature?

Probably because the unit of measurement is not the same? It’s EUR not Eur.
This is just a guess!

You could try to correct this in the database for previous rows.