Dedupe OCPP parameters configuration in charging station attributes
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 14 Oct 2021 12:13:37 +0000 (14:13 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 14 Oct 2021 12:13:37 +0000 (14:13 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/charging-station/ChargingStation.ts

index b92626a038f4fff90326398c6398e09120fcae97..b0ca0117c6b2da7eedec99fa278652d13aab497a 100644 (file)
@@ -479,6 +479,7 @@ export default class ChargingStation {
   private initialize(): void {
     this.stationInfo = this.buildStationInfo();
     this.configuration = this.getTemplateChargingStationConfiguration();
+    delete this.stationInfo.Configuration;
     this.bootNotificationRequest = {
       chargePointModel: this.stationInfo.chargePointModel,
       chargePointVendor: this.stationInfo.chargePointVendor,