|
6 | 6 | from saic_ismart_client_ng import SaicApi |
7 | 7 | from saic_ismart_client_ng.api.schema import GpsPosition, GpsStatus |
8 | 8 | from saic_ismart_client_ng.api.vehicle import VehicleStatusResp |
9 | | -from saic_ismart_client_ng.api.vehicle.schema import VinInfo, BasicVehicleStatus |
| 9 | +from saic_ismart_client_ng.api.vehicle.schema import VinInfo, BasicVehicleStatus, VehicleModelConfiguration |
10 | 10 | from saic_ismart_client_ng.api.vehicle_charging import ChrgMgmtDataResp |
11 | 11 | from saic_ismart_client_ng.api.vehicle_charging.schema import RvsChargeStatus, ChrgMgmtData |
12 | 12 | from saic_ismart_client_ng.model import SaicApiConfiguration |
@@ -170,6 +170,12 @@ def setUp(self) -> None: |
170 | 170 | vin_info = VinInfo() |
171 | 171 | vin_info.vin = VIN |
172 | 172 | vin_info.series = 'EH32 S' |
| 173 | + vin_info.modelName = 'MG4 Electric' |
| 174 | + vin_info.modelYear = 2022 |
| 175 | + vin_info.vehicleModelConfiguration = [ |
| 176 | + VehicleModelConfiguration('BATTERY', 'BATTERY', '1'), |
| 177 | + VehicleModelConfiguration('BType', 'Battery', '1'), |
| 178 | + ] |
173 | 179 | account_prefix = f'/vehicles/{VIN}' |
174 | 180 | scheduler = BlockingScheduler() |
175 | 181 | vehicle_state = VehicleState(publisher, scheduler, account_prefix, vin_info) |
|
0 commit comments