|
14 | 14 | ScheduleChargingClimateRequestOptions, |
15 | 15 | WindowRequestOptions, |
16 | 16 | ) |
17 | | -from .svm import SVMDetails |
18 | 17 | from .const import ( |
19 | 18 | BRAND_GENESIS, |
20 | 19 | BRAND_HYUNDAI, |
|
45 | 44 | from .KiaUvoApiEU import KiaUvoApiEU |
46 | 45 | from .KiaUvoApiIN import KiaUvoApiIN |
47 | 46 | from .KiaUvoApiUSA import KiaUvoApiUSA |
| 47 | +from .svm import SVMDetails |
48 | 48 | from .Token import Token |
49 | 49 | from .Vehicle import Vehicle |
50 | 50 |
|
@@ -131,6 +131,7 @@ def initialize_vehicles(self): |
131 | 131 | for vehicle in vehicles: |
132 | 132 | vehicle.supports_window_control = self.api.supports_window_control |
133 | 133 | vehicle.supports_valet_mode = self.api.supports_valet_mode |
| 134 | + vehicle.supports_svm = self.api.supports_svm |
134 | 135 | self.vehicles[vehicle.id] = vehicle |
135 | 136 |
|
136 | 137 | def get_vehicle(self, vehicle_id: str) -> Vehicle: |
@@ -192,20 +193,6 @@ def force_refresh_vehicle_state(self, vehicle_id: str) -> None: |
192 | 193 | else: |
193 | 194 | _LOGGER.debug(f"{DOMAIN} - Vehicle Disabled, skipping.") |
194 | 195 |
|
195 | | - def supports_svm(self, vehicle_id: str) -> bool: |
196 | | - """Return whether the given vehicle supports SVM. |
197 | | -
|
198 | | - Delegates to the region-specific API implementation. Missing vehicles |
199 | | - and any API failures are reported as False. |
200 | | - """ |
201 | | - vehicle = self.vehicles.get(vehicle_id) |
202 | | - if vehicle is None: |
203 | | - return False |
204 | | - try: |
205 | | - return self.api.supports_svm(self.token, vehicle) |
206 | | - except Exception: |
207 | | - return False |
208 | | - |
209 | 196 | def get_svm_details(self, vehicle_id: str) -> SVMDetails: |
210 | 197 | """Return the latest cached SVM composite image and metadata. |
211 | 198 |
|
|
0 commit comments