fix: fix return at getting connector status with evses
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 28 Apr 2023 17:47:13 +0000 (19:47 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 28 Apr 2023 17:47:13 +0000 (19:47 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 9cd20129714e214efb905ff8c68a6ff012389ba8..b52fb585a63c226b5998ea444158d0496c24a0c2 100644 (file)
@@ -287,6 +287,7 @@ export class ChargingStation {
           return evseStatus.connectors.get(connectorId);
         }
       }
+      return undefined;
     }
     return this.connectors.get(connectorId);
   }