mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-08-31 20:56:41 +00:00
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:
@@ -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(
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user