Skip to content

Commit

Permalink
Fix status reason ot updated (evcc-io#15873)
Browse files Browse the repository at this point in the history
  • Loading branch information
premultiply authored Sep 3, 2024
1 parent 53e025b commit 5489a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/loadpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5489a15

Please sign in to comment.