From 340ca4995711321cd63b78d245360aee668eea4f Mon Sep 17 00:00:00 2001 From: 7tobias Date: Tue, 9 Sep 2025 10:50:14 +0200 Subject: [PATCH] Fix horizon validation for non-integer angle divisions (#665) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #647 - Change azimuthFrom/azimuthTo to float type to handle horizon counts that don't divide evenly into 360° Co-authored-by: Tobias Welz --- src/akkudoktoreos/prediction/pvforecastakkudoktor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/akkudoktoreos/prediction/pvforecastakkudoktor.py b/src/akkudoktoreos/prediction/pvforecastakkudoktor.py index 587687b..bafae24 100644 --- a/src/akkudoktoreos/prediction/pvforecastakkudoktor.py +++ b/src/akkudoktoreos/prediction/pvforecastakkudoktor.py @@ -92,8 +92,8 @@ from akkudoktoreos.utils.datetimeutil import compare_datetimes, to_datetime class AkkudoktorForecastHorizon(PydanticBaseModel): altitude: int - azimuthFrom: int - azimuthTo: int + azimuthFrom: float + azimuthTo: float class AkkudoktorForecastMeta(PydanticBaseModel):