From 84eaffb5885b7de2a4d15561aa09ccedeca87267 Mon Sep 17 00:00:00 2001 From: Michael Hess Date: Mon, 18 Nov 2024 22:17:25 +0100 Subject: [PATCH] fix improper use of range when iterating --- charger/easee.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/charger/easee.go b/charger/easee.go index 5f7ca88bb4..35dbe3a938 100644 --- a/charger/easee.go +++ b/charger/easee.go @@ -824,7 +824,7 @@ func (c *Easee) GetPhases() (int, error) { var phases int if c.circuit != 0 { // circuit level controlled charger - for dcc := range c.dynamicCircuitCurrent { + for _, dcc := range c.dynamicCircuitCurrent { if dcc > 0 { phases++ }