From: Jérôme Benoit Date: Thu, 9 Nov 2023 20:11:03 +0000 (+0100) Subject: fix: ensure connectors status are saved is configuration X-Git-Tag: v1.2.24~27 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8ab96efb5e72fd17d79a376b2db19c7ab43497a1;p=e-mobility-charging-stations-simulator.git fix: ensure connectors status are saved is configuration Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index bd3fb812..134ccff6 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1701,6 +1701,10 @@ export class ChargingStation { stationInfo: configurationData.stationInfo, configurationKey: configurationData.configurationKey, automaticTransactionGenerator: configurationData.automaticTransactionGenerator, + ...(this.connectors.size > 0 && { + connectorsStatus: configurationData.connectorsStatus, + }), + ...(this.evses.size > 0 && { evsesStatus: configurationData.evsesStatus }), } as ChargingStationConfiguration), ) .digest('hex');