OCPP: accept Scheduled as positive response to ChangeAvailibility request (#23713)
This commit is contained in:
parent
94b71bd3f3
commit
8c2a5aabd4
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ func (cp *CP) ChangeAvailabilityRequest(connectorId int, availabilityType core.A
|
|||
rc := make(chan error, 1)
|
||||
|
||||
err := Instance().ChangeAvailability(cp.id, func(request *core.ChangeAvailabilityConfirmation, err error) {
|
||||
if err == nil && request != nil && request.Status != core.AvailabilityStatusAccepted {
|
||||
if err == nil && request != nil && request.Status != core.AvailabilityStatusAccepted && request.Status != core.AvailabilityStatusScheduled {
|
||||
err = errors.New(string(request.Status))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue