Skip to content

Commit

Permalink
Update StatusPTH schema to accept lists for Max thresholds (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
jziolkowski authored Sep 28, 2024
1 parent a1b4e86 commit a2b070c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tdmgr/schemas/status.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]]


Expand Down

0 comments on commit a2b070c

Please sign in to comment.