Stop influxdb data being updated on restart / HA update


Slightly related to this:

I have a sensor setup to capture hourly, daily and monthly energy use. I’ve setup a visual in Grafana and it’s revealed a slight issue. It looks like whenever I restart HA, which is fairly often with updates, I get data passed to influxdb for these sensors at the time of restart. Example below, where is still get the correct total at 00:00, but another value when restart occured.

Any advice on how to stop this happening?