Skip to content

Commit 5749fa8

Browse files
committed
Drop invalid signal for is_charging from basicVehicleStatus, this one is not reliable for non-ev vehicles
1 parent d9cea60 commit 5749fa8

File tree

1 file changed

+0
-8
lines changed
  • src/saic_ismart_client_ng/api/vehicle

1 file changed

+0
-8
lines changed

src/saic_ismart_client_ng/api/vehicle/schema.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,6 @@ class VehicleStatusResp:
115115
gpsPosition: GpsPosition = None
116116
statusTime: int = None
117117

118-
@property
119-
def is_charging(self) -> bool:
120-
return (
121-
self.basicVehicleStatus and
122-
self.basicVehicleStatus.extendedData2
123-
and self.basicVehicleStatus.extendedData2 >= 1
124-
)
125-
126118
@property
127119
def is_parked(self) -> bool:
128120
return (

0 commit comments

Comments
 (0)