Skip to content

Commit

Permalink
Easee: don't update smart charging if disconnected (evcc-io#11525)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrimmiMeloni authored Jan 6, 2024
1 parent 9e1df8f commit b6bfb1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion charger/easee.go
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ func (c *Easee) updateSmartCharging() {
isSmartCharging := mode == api.ModePV || mode == api.ModeMinPV

c.mux.Lock()
updateNeeded := isSmartCharging != c.smartCharging
updateNeeded := c.opMode != easee.ModeDisconnected && isSmartCharging != c.smartCharging
c.mux.Unlock()

if updateNeeded {
Expand Down

0 comments on commit b6bfb1a

Please sign in to comment.