Skip to content

Commit

Permalink
Merge branch 'master' into patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolbi authored Apr 3, 2024
2 parents e5dd4b1 + c771ffe commit 7e5beec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions custom_components/audiconnect/audi_connect_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -882,13 +882,13 @@ def oil_level(self):
"""Return oil level percentage"""
if self.oil_level_supported:
val = self._vehicle.fields.get("OIL_LEVEL_DIPSTICKS_PERCENTAGE")
if isinstance(val, bool):
if val:
return 100
else:
return 1
elif parse_float(val):
return parse_float(val)
if isinstance(val, bool):
if val:
return 100
else:
return 1
elif parse_float(val):
return parse_float(val)

@property
def oil_level_supported(self):
Expand Down
2 changes: 1 addition & 1 deletion custom_components/audiconnect/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
"issue_tracker": "https://github.com/arjenvrh/audi_connect_ha/issues",
"loggers": ["audiconnect"],
"requirements": ["beautifulsoup4"],
"version": "1.0.3"
"version": "1.1.0"
}

0 comments on commit 7e5beec

Please sign in to comment.