File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/saic_ismart_client_ng/api/vehicle_charging Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -360,10 +360,22 @@ class ChargingControlResp:
360360 def rvc_req_sts_decoded (self ) -> Optional [bytes ]:
361361 return decode_bytes (input_value = self .rvcReqSts , field_name = 'rvcReqSts' )
362362
363+ @property
364+ def charge_target_soc (self ) -> Optional [TargetBatteryCode ]:
365+ raw_target_soc = self .bmsOnBdChrgTrgtSOCDspCmd
366+ try :
367+ return TargetBatteryCode (raw_target_soc )
368+ except ValueError :
369+ return None
370+
363371 @property
364372 def is_battery_heating (self ) -> bool :
365373 return self .bmsPTCHeatReqDspCmd == 1
366374
375+ @property
376+ def charging_port_locked (self ) -> bool :
377+ return self .ccuEleccLckCtrlDspCmd == 1
378+
367379
368380@dataclass
369381class ScheduledBatteryHeatingRequest :
You can’t perform that action at this time.
0 commit comments