Skip to content

Commit

Permalink
Merge pull request #258 from plourenco/remove-charging-fuel
Browse files Browse the repository at this point in the history
Do not throw exception for unknown status attributes
  • Loading branch information
gerard33 committed Dec 14, 2020
2 parents 3d03477 + 0b4b364 commit f23b93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bimmer_connected/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def attributes(self) -> dict:

def __getattr__(self, item):
"""Generic get function for all backend attributes."""
return self.vehicle_status.attributes[item]
return self.vehicle_status.attributes.get(item)

@staticmethod
def _parse_datetime(date_str: str) -> datetime.datetime:
Expand Down

0 comments on commit f23b93a

Please sign in to comment.