Skip to content

Commit

Permalink
Merge pull request #233 from stickpin/fix-combined-range-sensor
Browse files Browse the repository at this point in the history
Fix combined range sensor logic
  • Loading branch information
stickpin authored Dec 13, 2023
2 parents 56a645e + d662539 commit 6c8d3cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions volkswagencarnet/vw_vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1193,8 +1193,9 @@ def is_combined_range_supported(self) -> bool:
:return:
"""
return is_valid_path(self.attrs, "measurements.rangeStatus.value.totalRange_km")

if is_valid_path(self.attrs, "measurements.rangeStatus.value.totalRange_km"):
return self.is_electric_range_supported and self.is_combustion_range_supported
return False
@property
def fuel_level(self) -> int:
"""
Expand Down

0 comments on commit 6c8d3cf

Please sign in to comment.