diff --git a/network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/BatteryImpl.java b/network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/BatteryImpl.java index 2bcff7bc4..6a18e939e 100644 --- a/network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/BatteryImpl.java +++ b/network-store-iidm-impl/src/main/java/com/powsybl/network/store/iidm/impl/BatteryImpl.java @@ -95,7 +95,7 @@ public double getMaxP() { @Override public Battery setMaxP(double maxP) { ValidationUtil.checkMaxP(this, maxP); - ValidationUtil.checkActivePowerLimits(this, getMinP(), maxP, getTargetP()); + ValidationUtil.checkActivePowerLimits(this, getMinP(), maxP); double oldValue = getResource().getAttributes().getMaxP(); if (maxP != oldValue) { updateResource(res -> res.getAttributes().setMaxP(maxP));