hyundai-kia-connect-api 3.24.0__py2.py3-none-any.whl → 3.24.2__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of hyundai-kia-connect-api might be problematic. Click here for more details.
- hyundai_kia_connect_api/KiaUvoApiAU.py +24 -16
- {hyundai_kia_connect_api-3.24.0.dist-info → hyundai_kia_connect_api-3.24.2.dist-info}/METADATA +3 -3
- {hyundai_kia_connect_api-3.24.0.dist-info → hyundai_kia_connect_api-3.24.2.dist-info}/RECORD +7 -7
- {hyundai_kia_connect_api-3.24.0.dist-info → hyundai_kia_connect_api-3.24.2.dist-info}/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.24.0.dist-info → hyundai_kia_connect_api-3.24.2.dist-info}/LICENSE +0 -0
- {hyundai_kia_connect_api-3.24.0.dist-info → hyundai_kia_connect_api-3.24.2.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.24.0.dist-info → hyundai_kia_connect_api-3.24.2.dist-info}/top_level.txt +0 -0
@@ -240,7 +240,10 @@ class KiaUvoApiAU(ApiImplType1):
|
|
240
240
|
},
|
241
241
|
)
|
242
242
|
|
243
|
-
if
|
243
|
+
if (
|
244
|
+
vehicle.engine_type == ENGINE_TYPES.EV
|
245
|
+
or vehicle.engine_type == ENGINE_TYPES.PHEV
|
246
|
+
):
|
244
247
|
try:
|
245
248
|
state = self._get_driving_info(token, vehicle)
|
246
249
|
except Exception as e:
|
@@ -255,8 +258,8 @@ class KiaUvoApiAU(ApiImplType1):
|
|
255
258
|
""",
|
256
259
|
exc_info=e,
|
257
260
|
)
|
258
|
-
|
259
|
-
|
261
|
+
else:
|
262
|
+
self._update_vehicle_drive_info(vehicle, state)
|
260
263
|
|
261
264
|
def force_refresh_vehicle_state(self, token: Token, vehicle: Vehicle) -> None:
|
262
265
|
status = self._get_forced_vehicle_state(token, vehicle)
|
@@ -270,15 +273,19 @@ class KiaUvoApiAU(ApiImplType1):
|
|
270
273
|
)
|
271
274
|
# Only call for driving info on cars we know have a chance of supporting it.
|
272
275
|
# Could be expanded if other types do support it.
|
273
|
-
if
|
276
|
+
if (
|
277
|
+
vehicle.engine_type == ENGINE_TYPES.EV
|
278
|
+
or vehicle.engine_type == ENGINE_TYPES.PHEV
|
279
|
+
):
|
274
280
|
try:
|
275
281
|
state = self._get_driving_info(token, vehicle)
|
276
282
|
except Exception as e:
|
277
|
-
# we don't know if all car types provide this
|
278
|
-
#
|
279
|
-
#
|
283
|
+
# we don't know if all car types (ex: ICE cars) provide this
|
284
|
+
# information. We also don't know what the API returns if
|
285
|
+
# the info is unavailable. So, catch any exception and move on.
|
280
286
|
_LOGGER.exception(
|
281
287
|
"""Failed to parse driving info. Possible reasons:
|
288
|
+
- incompatible vehicle (ICE)
|
282
289
|
- new API format
|
283
290
|
- API outage
|
284
291
|
""",
|
@@ -295,15 +302,16 @@ class KiaUvoApiAU(ApiImplType1):
|
|
295
302
|
else:
|
296
303
|
vehicle.last_updated_at = dt.datetime.now(self.data_timezone)
|
297
304
|
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
305
|
+
if get_child_value(state, "status.odometer.value"):
|
306
|
+
vehicle.odometer = (
|
307
|
+
get_child_value(state, "status.odometer.value"),
|
308
|
+
DISTANCE_UNITS[
|
309
|
+
get_child_value(
|
310
|
+
state,
|
311
|
+
"status.odometer.unit",
|
312
|
+
)
|
313
|
+
],
|
314
|
+
)
|
307
315
|
vehicle.car_battery_percentage = get_child_value(state, "status.battery.batSoc")
|
308
316
|
vehicle.engine_is_running = get_child_value(state, "status.engine")
|
309
317
|
|
{hyundai_kia_connect_api-3.24.0.dist-info → hyundai_kia_connect_api-3.24.2.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.24.
|
3
|
+
Version: 3.24.2
|
4
4
|
Summary: Python Boilerplate contains all the boilerplate you need to create a Python package.
|
5
5
|
Home-page: https://github.com/fuatakgun/hyundai_kia_connect_api
|
6
6
|
Author: Fuat Akgun
|
@@ -11,8 +11,8 @@ Classifier: Development Status :: 2 - Pre-Alpha
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
12
12
|
Classifier: License :: OSI Approved :: MIT License
|
13
13
|
Classifier: Natural Language :: English
|
14
|
-
Classifier: Programming Language :: Python :: 3.
|
15
|
-
Requires-Python: >=3.
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
15
|
+
Requires-Python: >=3.10
|
16
16
|
License-File: LICENSE
|
17
17
|
License-File: AUTHORS.rst
|
18
18
|
Requires-Dist: beautifulsoup4 >=4.10.0
|
{hyundai_kia_connect_api-3.24.0.dist-info → hyundai_kia_connect_api-3.24.2.dist-info}/RECORD
RENAMED
@@ -2,7 +2,7 @@ hyundai_kia_connect_api/ApiImpl.py,sha256=7tB6PZTEVlw-GCfEjU4ekq_ZgnFseYLrEYpbUy
|
|
2
2
|
hyundai_kia_connect_api/ApiImplType1.py,sha256=PnKwpbCoYGOXBWzBLIlDSrC6daIYeW9qlfW7TM4HCU0,12184
|
3
3
|
hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=MK1cFcnuZebogz32-nXjHt0pAgQ1-2lrurw8SADX6ww,36690
|
4
4
|
hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=FmRc7bAmsOz9jBtWSAb8lD0ybRMN0OgfEPZZJbPhMUw,31292
|
5
|
-
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=
|
5
|
+
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=tslh0gzvPBwYJmcWlf9B0l7PyYZdy2e7GqpRkl8_Svk,48471
|
6
6
|
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=B3Lks_ONr3l01QLl-GQBPdktXj9PZWKuQKRLYmJ7kP4,30763
|
7
7
|
hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=cwIPZ0dU6HolKdooUQeQKlLAic6YU8dQmNs0VQDBgpQ,47035
|
8
8
|
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=_wNkctkIO2hrf1K2LTZPtHWZ5ewTcXqTv0s_AXRXI2I,68254
|
@@ -13,9 +13,9 @@ hyundai_kia_connect_api/__init__.py,sha256=IkyVeIMbcFJZgLaiiNnUVA1Ferxvrm1bXHKVg
|
|
13
13
|
hyundai_kia_connect_api/const.py,sha256=ofi_ZfGxJYo0FWIcGFbIMSMRdKRtaK4GUDhFiQRvZeI,2007
|
14
14
|
hyundai_kia_connect_api/exceptions.py,sha256=m7gyDnvA5OVAK4EXSP_ZwE0s0uV8HsGUV0tiYwqofK0,1343
|
15
15
|
hyundai_kia_connect_api/utils.py,sha256=J0aXUX-nKIoS3XbelatNh-DZlHRU2_DYz_Mg_ZUKQJU,1957
|
16
|
-
hyundai_kia_connect_api-3.24.
|
17
|
-
hyundai_kia_connect_api-3.24.
|
18
|
-
hyundai_kia_connect_api-3.24.
|
19
|
-
hyundai_kia_connect_api-3.24.
|
20
|
-
hyundai_kia_connect_api-3.24.
|
21
|
-
hyundai_kia_connect_api-3.24.
|
16
|
+
hyundai_kia_connect_api-3.24.2.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
17
|
+
hyundai_kia_connect_api-3.24.2.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
|
18
|
+
hyundai_kia_connect_api-3.24.2.dist-info/METADATA,sha256=jBhEZSSycXW3f31TmjPNIr32pDKm2T01Y9VnfAxJ-1U,6071
|
19
|
+
hyundai_kia_connect_api-3.24.2.dist-info/WHEEL,sha256=OpXWERl2xLPRHTvd2ZXo_iluPEQd8uSbYkJ53NAER_Y,109
|
20
|
+
hyundai_kia_connect_api-3.24.2.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
21
|
+
hyundai_kia_connect_api-3.24.2.dist-info/RECORD,,
|
{hyundai_kia_connect_api-3.24.0.dist-info → hyundai_kia_connect_api-3.24.2.dist-info}/AUTHORS.rst
RENAMED
File without changes
|
{hyundai_kia_connect_api-3.24.0.dist-info → hyundai_kia_connect_api-3.24.2.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.24.0.dist-info → hyundai_kia_connect_api-3.24.2.dist-info}/top_level.txt
RENAMED
File without changes
|