Energy Dashboard & Reimann Sum issue

Hi there,
2 issues here I think.
Occasionally I force charge my battery from the grid in the early hours of the morning. This is often only for a relatively short period, less than an hour. When it is less than hour I get the following massive energy to battery. I tried changing the Reimann Sum interval from hours to minutes and then I completely lost all my data. Anyone have any idea how to fix this?

What method: are you using?

Thanks tom
Code as follows. I think its the default method (trapezoidal) then right?

- platform: integration
  source: sensor.grid_consumption_power
  name: grid_consumption_energy
  unit_prefix: k
  unit_time: h
  round: 4

Yes. Change it to method: left

Aha, right got that, thankyou very much