From 15af2feb2facd029a64f005074db43cdb175e69c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 23 Nov 2023 21:46:09 +0100 Subject: [PATCH] refactor: cleanup persistent stationInfo tunable handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/charging-station/ChargingStation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 610c2d54..02200e41 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -1133,7 +1133,7 @@ export class ChargingStation extends EventEmitter { } private getStationInfoFromFile( - stationInfoPersistentConfiguration: boolean, + stationInfoPersistentConfiguration = true, ): ChargingStationInfo | undefined { let stationInfo: ChargingStationInfo | undefined; if (stationInfoPersistentConfiguration === true) { @@ -1171,7 +1171,7 @@ export class ChargingStation extends EventEmitter { }; const stationInfoFromTemplate: ChargingStationInfo = this.getStationInfoFromTemplate(); const stationInfoFromFile: ChargingStationInfo | undefined = this.getStationInfoFromFile( - stationInfoFromTemplate?.stationInfoPersistentConfiguration ?? true, + stationInfoFromTemplate?.stationInfoPersistentConfiguration, ); // Priority: // 1. charging station info from template -- 2.34.1