Energy tab - Gas

I have a smart meter that reports total gas Kwh via MQTT into HA

This normally works fine, with the energy tab showing the delta in Kwh for every hour.
However, on occasion the first hour of the day (00:00 - 01:00) shows as using the total - there is no delta - giving a one hour gas usage of about 55000kwh

Any ideas…?