Energy - What to do with total consumption being reset every period (60days) by the Electricity company

Hi,

I’m using pyhydroquebec and my electricity company reset the TOTAL consumption every billing period (about 60 days).

How should I configure HA to reset the stats when the new period starts ?

Now the stats are all wrong because HA thinks that I consume -1500kWh last night… since the sensor went from 1500kWh to 0kWh overnight…

Any ideas ?