Easee: don’t send pause/resume commands when disconnected (#8583)
This commit is contained in:
parent
693041d740
commit
edcb8c720a
1 changed files with 5 additions and 0 deletions
|
|
@ -405,6 +405,11 @@ func (c *Easee) Enable(enable bool) error {
|
|||
}
|
||||
}
|
||||
|
||||
// do not send pause/resume if disconnected
|
||||
if c.opMode == easee.ModeDisconnected {
|
||||
return nil
|
||||
}
|
||||
|
||||
// resume/stop charger
|
||||
action := easee.ChargePause
|
||||
if enable {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue