Power Monitoring Plug running ESPHome not showing in Energy Dashboard

So I’m sure I’m missing something simple but after a month or so of trying to find the right needle in this haystack I’m resorting to asking the collective wisdom.

I’m trying to get ontop of the energy usage in our house and so I’ve got a couple of power monitoring smart plugs running ESPHome from MyLocalBytes these are running and reporting back the power usage.

I believe the issue is the device_class being set to power not energy. This is from what I can see digging through other people’s post previously.

I’ve attempted to follow the instructions for adding a ‘Riemann sum’ integration but that still come through with a device_class of power. When I manually set the device_class:energy I get;

I’m sure I’m missing something simple but can’t for the life of me work it out.

ESPHome Config

substitutions:
  name: localbytes-plug-pm-8ca026
  friendly_name: Car Plug
  device_class: "energy"
packages:
  localbytes.plug-pm: github://LocalBytes/esphome-localbytes-plug/localbytes-plug-pm.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
api:
  encryption:
    key: [--REMOVED--]


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

This appears to return a value

So off to the yaml

- platform: integration
  source: sensor.car_plug_power
  name: car_plug_energy
  method: left
  round: 2
#  device_class: energy
  unit_prefix: k

This also works