Skip to content

Commit

Permalink
Drop invalid signal for is_charging from basicVehicleStatus, this one…
Browse files Browse the repository at this point in the history
… is not reliable for non-ev vehicles
  • Loading branch information
nanomad committed Jan 13, 2025
1 parent d9cea60 commit 5749fa8
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/saic_ismart_client_ng/api/vehicle/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,6 @@ class VehicleStatusResp:
gpsPosition: GpsPosition = None
statusTime: int = None

@property
def is_charging(self) -> bool:
return (
self.basicVehicleStatus and
self.basicVehicleStatus.extendedData2
and self.basicVehicleStatus.extendedData2 >= 1
)

@property
def is_parked(self) -> bool:
return (
Expand Down

0 comments on commit 5749fa8

Please sign in to comment.