mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-01-07 03:06:17 +00:00
Documentation: Support nested config
* Add examples to pydantic models.
This commit is contained in:
@@ -18,6 +18,8 @@ class classproperty(property):
|
||||
|
||||
|
||||
class UtilsCommonSettings(SettingsBaseModel):
|
||||
"""Utils Configuration."""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@@ -419,7 +419,9 @@ def prepare_visualize(
|
||||
start_hour: Optional[int] = 0,
|
||||
) -> None:
|
||||
report = VisualizationReport(filename)
|
||||
next_full_hour_date = pendulum.now(report.config.prediction.timezone).start_of("hour").add(hours=1)
|
||||
next_full_hour_date = (
|
||||
pendulum.now(report.config.prediction.timezone).start_of("hour").add(hours=1)
|
||||
)
|
||||
# Group 1:
|
||||
report.create_line_chart_date(
|
||||
next_full_hour_date, # start_date
|
||||
|
||||
Reference in New Issue
Block a user