@@ -174,7 +174,10 @@ def enum_to_str(enum_type: EnumTypeWrapper, value: int) -> str:
174
174
| (VSS .EnergyType , EnergyType .ENERGY_TYPE_UNKNOWN )
175
175
| (VSS .DriveMode , DriveMode .DRIVE_MODE_UNKNOWN )
176
176
| (VSS .GearPosition , GearPosition .GEAR_UNKNOWN )
177
- | (VSS .TcuDownloadStatus , TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_UNKNOWN )
177
+ | (
178
+ VSS .TcuDownloadStatus ,
179
+ TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_UNKNOWN ,
180
+ )
178
181
):
179
182
return "Unknown"
180
183
@@ -323,17 +326,35 @@ def enum_to_str(enum_type: EnumTypeWrapper, value: int) -> str:
323
326
case (VSS .GearPosition , GearPosition .GEAR_DRIVE ):
324
327
return "Drive"
325
328
326
- case (VSS .TcuDownloadStatus , TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_IDLE ):
329
+ case (
330
+ VSS .TcuDownloadStatus ,
331
+ TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_IDLE ,
332
+ ):
327
333
return "Idle"
328
- case (VSS .TcuDownloadStatus , TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOADING ):
334
+ case (
335
+ VSS .TcuDownloadStatus ,
336
+ TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOADING ,
337
+ ):
329
338
return "Downloading"
330
- case (VSS .TcuDownloadStatus , TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_PAUSED ):
339
+ case (
340
+ VSS .TcuDownloadStatus ,
341
+ TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_PAUSED ,
342
+ ):
331
343
return "Paused"
332
- case (VSS .TcuDownloadStatus , TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_COMPLETE ):
344
+ case (
345
+ VSS .TcuDownloadStatus ,
346
+ TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_COMPLETE ,
347
+ ):
333
348
return "Complete"
334
- case (VSS .TcuDownloadStatus , TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_FAILED ):
349
+ case (
350
+ VSS .TcuDownloadStatus ,
351
+ TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_FAILED ,
352
+ ):
335
353
return "Failed"
336
- case (VSS .TcuDownloadStatus , TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_CANCELED ):
354
+ case (
355
+ VSS .TcuDownloadStatus ,
356
+ TcuDownloadStatus .TCU_SOFTWARE_DOWNLOAD_STATUS_DOWNLOAD_CANCELED ,
357
+ ):
337
358
return "Canceled"
338
359
339
360
case _:
0 commit comments