From 0de04cd5c5fc9742bf56edf72ec0a83a1c61bfcd Mon Sep 17 00:00:00 2001 From: cwasicki <126617870+cwasicki@users.noreply.github.com> Date: Thu, 7 May 2026 23:42:43 +0200 Subject: [PATCH] Remove default for curtailable flag in PV config Allows to detect if the flag was not set by the user and let downstream decide how to handle the unset case. Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com> --- RELEASE_NOTES.md | 2 +- src/frequenz/gridpool/_microgrid_config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index d466455..3bec7e4 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -6,7 +6,7 @@ ## Upgrading - +* Change the `curtailable` flag default of the PV config to `None`. ## New Features diff --git a/src/frequenz/gridpool/_microgrid_config.py b/src/frequenz/gridpool/_microgrid_config.py index d21deb6..b99e6d2 100644 --- a/src/frequenz/gridpool/_microgrid_config.py +++ b/src/frequenz/gridpool/_microgrid_config.py @@ -117,7 +117,7 @@ class PVConfig: rated_power: float | None = None """Rated power of the inverters in Watt.""" - curtailable: bool = False + curtailable: bool | None = None """Flag to indicate if PV system can be curtailed."""