X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FHelpers.ts;h=22ed5041e0515cc6b0769b3acb85df2d54525287;hb=8f9060ba0f4e2e22053ceb34f357bb8a1263d889;hp=2e6f0869b114629a1132a5f249f7e72f4264d2e2;hpb=afbb820255fb5afe908c743ae53ae5a5f990c700;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Helpers.ts b/src/charging-station/Helpers.ts index 2e6f0869..22ed5041 100644 --- a/src/charging-station/Helpers.ts +++ b/src/charging-station/Helpers.ts @@ -335,12 +335,11 @@ export const buildConnectorsMap = ( } export const setChargingStationOptions = ( - chargingStation: ChargingStation, stationInfo: ChargingStationInfo, options?: ChargingStationOptions ): ChargingStationInfo => { if (options?.supervisionUrls != null) { - chargingStation.setSupervisionUrls(options.supervisionUrls, false) + stationInfo.supervisionUrls = options.supervisionUrls } if (options?.persistentConfiguration != null) { stationInfo.stationInfoPersistentConfiguration = options.persistentConfiguration @@ -500,6 +499,7 @@ export const stationTemplateToStationInfo = ( delete stationTemplate.Evses delete stationTemplate.Configuration delete stationTemplate.AutomaticTransactionGenerator + delete stationTemplate.numberOfConnectors delete stationTemplate.chargeBoxSerialNumberPrefix delete stationTemplate.chargePointSerialNumberPrefix delete stationTemplate.meterSerialNumberPrefix