diff --git a/src/frequenz/sdk/actor/power_distributing/power_distributing.py b/src/frequenz/sdk/actor/power_distributing/power_distributing.py index 44f27a8d1..2ada4d05b 100644 --- a/src/frequenz/sdk/actor/power_distributing/power_distributing.py +++ b/src/frequenz/sdk/actor/power_distributing/power_distributing.py @@ -527,10 +527,7 @@ def _check_request( # # If the requested power is in the exclusion bounds, it is NOT possible to # increase it so that it is outside the exclusion bounds. - if ( - request.power > bounds.exclusion_lower - and request.power < bounds.exclusion_upper - ): + if bounds.exclusion_lower < request.power < bounds.exclusion_upper: return OutOfBound(request=request, bound=bounds) else: in_lower_range = (