From 3497da01c70a699484836f4d122a8cbaf670c44d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 18 Oct 2020 16:36:00 +0200 Subject: [PATCH] Handle reboot OCPP params option. 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.js | 3 ++- src/index.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/charging-station/ChargingStation.js b/src/charging-station/ChargingStation.js index 19841765..97bca4a4 100644 --- a/src/charging-station/ChargingStation.js +++ b/src/charging-station/ChargingStation.js @@ -582,7 +582,7 @@ class ChargingStation { return this._configuration.configurationKey.find((configElement) => configElement.key === key); } - _addConfigurationKey(key, value, readonly = false, visible = true) { + _addConfigurationKey(key, value, readonly = false, visible = true, reboot = false) { const keyFound = this._getConfigurationKey(key); if (!keyFound) { this._configuration.configurationKey.push({ @@ -590,6 +590,7 @@ class ChargingStation { readonly, value, visible, + reboot, }); } } diff --git a/src/index.js b/src/index.js index fb54b6c0..d63d823a 100644 --- a/src/index.js +++ b/src/index.js @@ -27,7 +27,7 @@ class Bootstrap { } }); } else { - console.log('No stationURLS defined in configuration, exiting'); + console.log('No stationURLs defined in configuration, exiting'); } } catch (error) { // eslint-disable-next-line no-console -- 2.34.1