From 1a4229a5554b1edee2f885725327fce8020cc126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jacek=20Zi=C3=B3=C5=82kowski?= Date: Sat, 28 Sep 2024 15:03:46 +0200 Subject: [PATCH] Update StatusPTH schema to accept lists for Max thresholds --- tdmgr/schemas/status.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tdmgr/schemas/status.py b/tdmgr/schemas/status.py index a9e69bb..bb43015 100644 --- a/tdmgr/schemas/status.py +++ b/tdmgr/schemas/status.py @@ -137,15 +137,15 @@ class StatusMQTSchema(StatusBaseModel): class StatusPTHSchema(StatusBaseModel): CurrentHigh: Union[int, List[int]] CurrentLow: Union[int, List[int]] - MaxEnergy: Optional[int] = None - MaxEnergyStart: Optional[int] = None - MaxPower: Optional[int] = None - MaxPowerHold: Optional[int] = None - MaxPowerWindow: Optional[int] = None + MaxEnergy: Optional[Union[int, List[int]]] = None + MaxEnergyStart: Optional[Union[int, List[int]]] = None + MaxPower: Optional[Union[int, List[int]]] = None + MaxPowerHold: Optional[Union[int, List[int]]] = None + MaxPowerWindow: Optional[Union[int, List[int]]] = None PowerDelta: Union[int, List[int]] PowerHigh: Union[int, List[int]] PowerLow: Union[int, List[int]] - VoltageHigh: Optional[int] = None + VoltageHigh: Optional[Union[int, List[int]]] = None VoltageLow: Union[int, List[int]]