chore: simplify

This commit is contained in:
andig 2025-06-15 12:45:27 +02:00
parent 51ef2e7ac8
commit cf5e2bac0f
4 changed files with 21 additions and 23 deletions

View file

@ -101,9 +101,7 @@ type Meter struct {
// Decorate attaches additional capabilities to the base meter
func (m *Meter) Decorate(
totalEnergy func() (float64, error),
currents func() (float64, float64, float64, error),
voltages func() (float64, float64, float64, error),
powers func() (float64, float64, float64, error),
currents, voltages, powers func() (float64, float64, float64, error),
batterySoc func() (float64, error),
batteryCapacity func() float64,
maxACPower func() float64,