Easee: don't update smart charging if disconnected (#11525)
This commit is contained in:
parent
9e1df8fc4d
commit
b6bfb1a1dd
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue