I like doing things in the UI and now attempting to move some of the sensors from config yaml to template sensor helpers. Since I know close to nothing about templating, I have immediately run into an issue.
I have this sensor
sensor:
- platform: integration
name: Grid Import Energy
source: sensor.grid_import_power
unit_prefix: k
unit_time: h
method: left
You didn’t post the entire sensor code, but I guess it is a Riemann sum integral sensor, not a template sensor. It uses a different helper, where you can select left Riemann as a type.