From a099d9aeea4248df9355c206d6177ee666a15941 Mon Sep 17 00:00:00 2001 From: Jan Pecinovsky <=> Date: Tue, 13 Aug 2024 10:10:52 +0000 Subject: [PATCH] add threshold to capacity input --- openenergyid/__init__.py | 2 +- openenergyid/capacity/models.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/openenergyid/__init__.py b/openenergyid/__init__.py index a1b1974..b8481cb 100644 --- a/openenergyid/__init__.py +++ b/openenergyid/__init__.py @@ -1,6 +1,6 @@ """Open Energy ID Python SDK.""" -__version__ = "0.1.15" +__version__ = "0.1.16" from .enums import Granularity from .models import TimeDataFrame, TimeSeries diff --git a/openenergyid/capacity/models.py b/openenergyid/capacity/models.py index 8f2fe4e..6e8332a 100644 --- a/openenergyid/capacity/models.py +++ b/openenergyid/capacity/models.py @@ -10,6 +10,7 @@ class CapacityInput(BaseModel): timezone: str = Field(alias="timeZone") series: TimeSeries + threshold: float = Field(ge=0) class PeakDetail(BaseModel):