fix: provider settings in top level field of configuration (#1161)

Configuration for some providers was given in the sub-field `provider_settings`
combining the settings of several providers. Pydantic does not understand
this very well and the configuration became cumbersome, especially in EOSdash.

All provider settings from the `provider-settings` sub-field are now lifted
to the top level field of the configuration.

The changes are automatically migrated in the configuration.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
Bobby Noelte
2026-07-20 14:37:03 +02:00
committed by GitHub
parent 845191c0d0
commit 3bb0e02aed
44 changed files with 798 additions and 1061 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ def LoadForecast(predictions: pd.DataFrame, config: dict, date_time_tz: str, dar
"date_time",
"loadforecast_power_w",
source=source,
legend_label="Load forcast value (adjusted by measurement)",
legend_label="Load forecast value (adjusted by measurement)",
color="red",
)
plot.line(
+3 -3
View File
@@ -1314,7 +1314,7 @@ async def fastapi_gesamtlast(request: GesamtlastRequest) -> list[float]:
detail=f"Can not update predictions: {e}",
)
# Get the forcast starting at start of day
# Get the forecast starting at start of day
start_datetime = to_datetime().start_of("day")
end_datetime = start_datetime.add(days=2)
try:
@@ -1374,7 +1374,7 @@ async def fastapi_gesamtlast_simple(year_energy: float) -> list[float]:
detail=f"Can not update predictions: {e}",
)
# Get the forcast starting at start of day
# Get the forecast starting at start of day
start_datetime = to_datetime().start_of("day")
end_datetime = start_datetime.add(days=2)
try:
@@ -1430,7 +1430,7 @@ async def fastapi_pvforecast() -> ForecastResponse:
detail=f"Can not update predictions: {e}",
)
# Get the forcast starting at start of day
# Get the forecast starting at start of day
start_datetime = to_datetime().start_of("day")
end_datetime = start_datetime.add(days=2)
try: