mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-11-25 06:46:25 +00:00
fix: pydantic extra keywords deprecated (#753)
Pydantic deprecates using extra keyword arguments on Field. Used json_schema_extra instead. Deprecated in Pydantic V2.0 to be removed in V3.0. Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
@@ -27,10 +27,14 @@ class PVForecastVrmCommonSettings(SettingsBaseModel):
|
||||
"""Common settings for VRM API."""
|
||||
|
||||
pvforecast_vrm_token: str = Field(
|
||||
default="your-token", description="Token for Connecting VRM API", examples=["your-token"]
|
||||
default="your-token",
|
||||
json_schema_extra={
|
||||
"description": "Token for Connecting VRM API",
|
||||
"examples": ["your-token"],
|
||||
},
|
||||
)
|
||||
pvforecast_vrm_idsite: int = Field(
|
||||
default=12345, description="VRM-Installation-ID", examples=[12345]
|
||||
default=12345, json_schema_extra={"description": "VRM-Installation-ID", "examples": [12345]}
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user