pvforecast: Some values optional. Closes #292 (#293)

* temperature, relativehumidity_2m, windspeed_10m can be null
 * prettify pv_forecast_input_1.json (and add null value)
This commit is contained in:
Dominique Lasserre
2024-12-29 16:43:37 +01:00
parent b386c4be70
commit 267a9bf427
7 changed files with 11687 additions and 13 deletions

View File

@@ -407,7 +407,7 @@ def fastapi_gesamtlast_simple(year_energy: float) -> list[float]:
class ForecastResponse(PydanticBaseModel):
temperature: list[float]
temperature: list[Optional[float]]
pvpower: list[float]