fix: ensure number of connectors is deleted from existing configurations
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 13 Feb 2024 19:02:15 +0000 (20:02 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 13 Feb 2024 19:02:15 +0000 (20:02 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 72bfd0aeceeadb0737b6f4629aab0586e87fe768..e064d4cd7237c58114b9a514072aabdf322ebaee 100644 (file)
@@ -1223,6 +1223,7 @@ export class ChargingStation extends EventEmitter {
       stationInfo = this.getConfigurationFromFile()?.stationInfo
       if (stationInfo != null) {
         delete stationInfo.infoHash
+        delete (stationInfo as ChargingStationTemplate).numberOfConnectors
         // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
         if (stationInfo.templateIndex == null) {
           stationInfo.templateIndex = this.index