Easee: don't update smart charging if disconnected (#11525)

This commit is contained in:
Michael Heß 2024-01-06 14:35:57 +01:00 • committed by GitHub
parent 9e1df8fc4d
commit b6bfb1a1dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {