Skip to content

Commit

Permalink
Make tire pressure entirely optional (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikroe authored May 20, 2023
1 parent 1ddd1da commit b60fb7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bimmer_connected/vehicle/tires.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TireState:
"""A tire of the vehicle."""

def __init__(self, status: Dict, details: Optional[Dict] = None):
self.current_pressure: int = status["currentPressure"]
self.current_pressure: Optional[int] = status.get("currentPressure")
self.target_pressure: Optional[int] = status.get("targetPressure")
self.season: Optional[int] = None
self.manufacturing_week: Optional[datetime] = None
Expand Down

0 comments on commit b60fb7f

Please sign in to comment.