Skip to content

Commit

Permalink
make scores optional (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
CM000n committed Jan 10, 2024
1 parent 5c785b9 commit 9b65daa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mytoyota/models/endpoints/trips.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class _TripModel(BaseModel):
id: UUID
category: int
summary: _SummaryModel
scores: _ScoresModel
scores: Optional[_ScoresModel] = None
behaviours: Optional[List[_BehaviourModel]] = None
hdc: Optional[_HDCModel] = None
route: Optional[List[_RouteModel]] = None
Expand All @@ -148,7 +148,7 @@ class _SummaryItemModel(BaseModel):
year: int
month: int
summary: _SummaryBaseModel
scores: _ScoresModel
scores: Optional[_ScoresModel] = None
hdc: Optional[_HDCModel] = None
histograms: List[_HistogramModel]

Expand Down

0 comments on commit 9b65daa

Please sign in to comment.