mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2026-07-21 09:18:12 +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:
@@ -16,8 +16,10 @@ class FeedInTariffFixedCommonSettings(SettingsBaseModel):
|
||||
feed_in_tariff_kwh: Optional[float] = Field(
|
||||
default=None,
|
||||
ge=0,
|
||||
description="Electricity price feed in tariff [€/kWH].",
|
||||
examples=[0.078],
|
||||
json_schema_extra={
|
||||
"description": "Electricity price feed in tariff [€/kWH].",
|
||||
"examples": [0.078],
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user