Skip to content

Commit

Permalink
Make unit and value optional (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
CM000n authored Jan 9, 2024
1 parent 09b3af8 commit 2623fc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mytoyota/models/endpoints/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class UnitValueModel(BaseModel):
"""

unit: str
value: float
unit: Optional[str] = None
value: Optional[float] = None


class _MessageModel(BaseModel):
Expand Down

0 comments on commit 2623fc3

Please sign in to comment.