diff --git a/src/saic_ismart_client_ng/api/vehicle_charging/schema.py b/src/saic_ismart_client_ng/api/vehicle_charging/schema.py index b89eb9f..0a186dd 100644 --- a/src/saic_ismart_client_ng/api/vehicle_charging/schema.py +++ b/src/saic_ismart_client_ng/api/vehicle_charging/schema.py @@ -393,6 +393,11 @@ class ChrgPtcHeatResp: def rvc_req_sts_decoded(self) -> Optional[bytes]: return decode_bytes(input_value=self.rvcReqSts, field_name='rvcReqSts') + @property + def heating_stop_reason(self) -> HeatingStopReason | None: + if self.ptcHeatResp is not None: + return HeatingStopReason.to_code(self.ptcHeatResp) + return None @dataclass class ChargingControlRequest: @@ -500,7 +505,7 @@ def charging_stop_reason(self) -> ChargingStopReason | None: @property def heating_stop_reason(self) -> HeatingStopReason | None: - if self.bmsPTCHeatSpRsn is not None: + if self.bmsPTCHeatResp is not None: return HeatingStopReason.to_code(self.bmsPTCHeatResp) return None