Does the Reimann Sum Integral helper replace this code?

Hiya, so I’m having issues with Tuya devices reporting energy from their power settings.

Can someone confirm if this code is now in the Reimann Sum Integral Helper?

sensor:
  - platform: integration
    source: sensor.current_power
    name: energy_spent
    unit_prefix: k
    round: 2

It is the same thing, just a different way to set it up. Integration - Riemann sum integral - Home Assistant

1 Like