Skip to content

Commit

Permalink
Updated Status in schema (#35)
Browse files Browse the repository at this point in the history
* Updated Status in schema

* Added dual type to battMode
  • Loading branch information
thisistheplace authored Dec 19, 2024
1 parent e0cdec9 commit 32109b0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions fronius_solarweb/schema/pvsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@ class AggrData(BaseModel):
channels: Optional[list[Channel]] = None


class Status(BaseModel):
class EnergyFlowStatus(BaseModel):
isOnline: bool
battMode: Optional[str] = None
battMode: Optional[float | str] = None


class PvSystemMetaData(BaseModel):
pvSystemId: str
name: Optional[str] = None
status: Optional[Status] = None
address: Optional[Address] = None
timezone: Optional[datetime] = None
pictureURL: Optional[str] = None
Expand All @@ -57,7 +56,7 @@ class PvSystemsMetaData(BaseModel):

class PvSystemFlowData(BaseModel):
pvSystemId: str
status: Optional[Status] = None
status: Optional[EnergyFlowStatus] = None
data: Optional[Data] = None


Expand Down

0 comments on commit 32109b0

Please sign in to comment.