Skip to content

Commit

Permalink
Update vehicle_status.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gerard33 committed Jul 27, 2021
1 parent e8de3c5 commit 4d441e7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bimmer_connected/vehicle_status.py
Expand Up @@ -295,6 +295,11 @@ def parking_lights(self) -> ParkingLightState:
"""
return ParkingLightState(self._state.attributes[SERVICE_STATUS]['parkingLight'])

@property
def has_parking_light_state(self) -> bool:
"""Return True if parking light is available."""
return 'parkingLight' in self._state.attributes[SERVICE_STATUS]

@property
def are_parking_lights_on(self) -> bool:
"""Get status of parking lights.
Expand Down

0 comments on commit 4d441e7

Please sign in to comment.