Integration sensor not totaling correctly

I have an ESPHome sensor that reports the current and power used by my water pump. That code is:

  - platform: ct_clamp
    sensor: adc_sensor
    name: "Water Pump Current"
    id: water_pump_current
    sample_duration: 500ms
    update_interval: 2s
      - calibrate_linear:
          - 0.002 -> 0.0
          - 0.188 -> 9.38

  - platform: adc
    pin: A0
    id: adc_sensor
    update_interval: 2s

  - platform: template
    name: "Water Pump Power"
    id: water_pump_power
    device_class: power
    state_class: measurement
    unit_of_measurement: "W"
    accuracy_decimals: 0
    lambda: |-
      if (id(water_pump_current).state > 1) {
        return id(water_pump_current).state * 240;
      } else {
        return 0.0;
    update_interval: 2s

The pump draws 10 amps at startup then runs at around 9.3-9.5 amps for about six minutes. That’s about 2256 watts since it runs on 240 volts. On HA I have an integration sensor, like so:

- platform: integration
  source: sensor.water_pump_power
  name: "Water Pump Energy Total"
  unique_id: water_pump_energy_total
  unit_prefix: k
  round: 2

When I look at history, I find that the pump’s power is correctly reported but the energy used is not. 2256 watts over six minutes would be 225.6 watt hours, or .2256 kWh, yes? But the integration sensor often reports a much higher value. Here is an example:

Here it reports over 17 kWh used. What could be going on here?

With trial and error, I solved this problem by declaring method: left in the integration sensor. This was not needed in non-esp integration sensors.