From 6ef2e658e85b8dbd14ca8a71aff988aabb1cf95c Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 25 Aug 2025 13:47:34 +0200 Subject: [PATCH] chore: minor --- charger/eebus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charger/eebus.go b/charger/eebus.go index 83142b6a4..7db73cd2b 100644 --- a/charger/eebus.go +++ b/charger/eebus.go @@ -579,7 +579,7 @@ func (c *EEBus) currents() (float64, float64, float64, error) { // only consider this an error, if the last limit update is older than 15 seconds // this covers the case where this function may be called shortly after setting a limit // but too short for a measurement can even be received - if d := time.Now().Sub(ts); d > 15*time.Second && !ts.IsZero() { + if d := time.Since(ts); d > 15*time.Second && !ts.IsZero() { return 0, 0, 0, api.ErrNotAvailable }