Fixed non existing charge point in change configuration
MODIFY
src/integration/charging-station-vendor/ChargingStationVendorIntegration.ts
src/integration/charging-station-vendor/ChargingStationVendorIntegration.ts
@@ -160,6 +160,7 @@ export default abstract class ChargingStationVendorIntegration {
public async checkUpdateOfOCPPParams(tenantID: string, chargingStation: ChargingStation,
ocppParamName: string, ocppParamValue: string) {
+ if (chargingStation.chargePoints) {
for (const chargePoint of chargingStation.chargePoints) {
if (ocppParamName === chargePoint.ocppParamForPowerLimitation) {
// Update the connector limit amps
@@ -182,6 +183,7 @@ export default abstract class ChargingStationVendorIntegration {
}
}
}
+ }
public async setChargingProfile(tenantID: string, chargingStation: ChargingStation, chargePoint: ChargePoint,
chargingProfile: ChargingProfile): Promise<OCPPSetChargingProfileCommandResult | OCPPSetChargingProfileCommandResult[]> {

Fixed non existing charge point in change configuration