From 1a2c418f570dab64cad3631c4ef1ff97d59fd144 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 21 Mar 2026 21:20:07 +0100 Subject: [PATCH] =?utf8?q?revert(ocpp2):=20re-comment=20Available=E2=86=92?= =?utf8?q?Available=20self-transitions?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Self-transitions are not allowed per OCPP 2.0.1 spec. The boot sequence warning needs a different fix (skip StatusNotification when connector status unchanged). --- src/charging-station/ocpp/2.0/OCPP20Constants.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/charging-station/ocpp/2.0/OCPP20Constants.ts b/src/charging-station/ocpp/2.0/OCPP20Constants.ts index be43d357..64d6c607 100644 --- a/src/charging-station/ocpp/2.0/OCPP20Constants.ts +++ b/src/charging-station/ocpp/2.0/OCPP20Constants.ts @@ -17,10 +17,7 @@ export class OCPP20Constants extends OCPPConstants { static readonly ChargingStationStatusTransitions: readonly ConnectorStatusTransition[] = Object.freeze([ { to: OCPP20ConnectorStatusEnumType.Available }, - { - from: OCPP20ConnectorStatusEnumType.Available, - to: OCPP20ConnectorStatusEnumType.Available, - }, + // { from: OCPP20ConnectorStatusEnumType.Available, to: OCPP20ConnectorStatusEnumType.Available }, { from: OCPP20ConnectorStatusEnumType.Available, to: OCPP20ConnectorStatusEnumType.Unavailable, -- 2.43.0