From a0e57590b9439314d46338d2ea4e003af1120663 Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Mon, 2 Sep 2024 23:11:52 +0000 Subject: [PATCH] fix reason updates --- core/loadpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index 8cf27989cb..59e91d6c91 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -1674,7 +1674,7 @@ func (lp *Loadpoint) Update(sitePower float64, rates api.Rates, batteryBuffered, lp.publish(keys.Connected, lp.connected()) lp.publish(keys.Charging, lp.charging()) - if sr, ok := lp.charger.(api.StatusReasoner); ok && lp.GetStatus() == api.StatusB { + if sr, ok := lp.charger.(api.StatusReasoner); ok { if r, err := sr.StatusReason(); err == nil { lp.publish(keys.ChargerStatusReason, r) } else {