From d662539323602a8bc3c39813462bd50650e4e9f2 Mon Sep 17 00:00:00 2001 From: Jacob Berelman <630000+stickpin@users.noreply.github.com> Date: Wed, 13 Dec 2023 12:06:51 +0100 Subject: [PATCH] Fix combined range sensor logic --- volkswagencarnet/vw_vehicle.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/volkswagencarnet/vw_vehicle.py b/volkswagencarnet/vw_vehicle.py index 36f37469..7ff8a0d2 100644 --- a/volkswagencarnet/vw_vehicle.py +++ b/volkswagencarnet/vw_vehicle.py @@ -1194,8 +1194,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: """