Don't send disconnected message on startup
This commit is contained in:
parent
40ddbab8cc
commit
32e8409691
1 changed files with 2 additions and 2 deletions
|
|
@ -788,8 +788,8 @@ func (lp *LoadPoint) updateChargerStatus() error {
|
|||
lp.bus.Publish(evChargeStop)
|
||||
}
|
||||
|
||||
// changed to A - disconnected
|
||||
if status == api.StatusA {
|
||||
// changed to A - disconnected - don't send on startup
|
||||
if status == api.StatusA && prevStatus != api.StatusNone {
|
||||
lp.bus.Publish(evVehicleDisconnect)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue