From 5e128725c7e0dae5e1c5819fb3160aec4c6db816 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 28 Apr 2023 19:47:13 +0200 Subject: [PATCH] fix: fix return at getting connector status with evses 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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/charging-station/ChargingStation.ts b/src/charging-station/ChargingStation.ts index 9cd20129..b52fb585 100644 --- a/src/charging-station/ChargingStation.ts +++ b/src/charging-station/ChargingStation.ts @@ -287,6 +287,7 @@ export class ChargingStation { return evseStatus.connectors.get(connectorId); } } + return undefined; } return this.connectors.get(connectorId); } -- 2.34.1