From 0612290e0b8b1924a3c94d7fcab3e602b3d50bca Mon Sep 17 00:00:00 2001 From: Normann Date: Fri, 7 Aug 2026 13:28:02 +0200 Subject: [PATCH] fix PVLib mountingplace None handling --- src/akkudoktoreos/prediction/pvforecastpvlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/akkudoktoreos/prediction/pvforecastpvlib.py b/src/akkudoktoreos/prediction/pvforecastpvlib.py index d40210ad..5f2cc865 100644 --- a/src/akkudoktoreos/prediction/pvforecastpvlib.py +++ b/src/akkudoktoreos/prediction/pvforecastpvlib.py @@ -343,7 +343,7 @@ class PVForecastPVLib(PredictionMixin, PVForecastProvider): if plane.strings_per_inverter is None: raise ValueError(f"Plane {plane_idx}: strings_per_inverter must be configured.") - mountingplace = plane.mountingplace.lower() + mountingplace = plane.mountingplace.lower() if plane.mountingplace is not None else None if mountingplace == "building": temp_params = TEMPERATURE_MODEL_PARAMETERS["sapm"]["close_mount_glass_glass"] elif mountingplace == "free" or mountingplace is None: