hyundai-kia-connect-api 3.17.2__py2.py3-none-any.whl → 3.17.4__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.
- hyundai_kia_connect_api/KiaUvoApiEU.py +18 -4
- {hyundai_kia_connect_api-3.17.2.dist-info → hyundai_kia_connect_api-3.17.4.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.17.2.dist-info → hyundai_kia_connect_api-3.17.4.dist-info}/RECORD +7 -7
- {hyundai_kia_connect_api-3.17.2.dist-info → hyundai_kia_connect_api-3.17.4.dist-info}/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.17.2.dist-info → hyundai_kia_connect_api-3.17.4.dist-info}/LICENSE +0 -0
- {hyundai_kia_connect_api-3.17.2.dist-info → hyundai_kia_connect_api-3.17.4.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.17.2.dist-info → hyundai_kia_connect_api-3.17.4.dist-info}/top_level.txt +0 -0
@@ -292,6 +292,8 @@ class KiaUvoApiEU(ApiImpl):
|
|
292
292
|
entry_engine_type = ENGINE_TYPES.PHEV
|
293
293
|
elif entry["type"] == "HV":
|
294
294
|
entry_engine_type = ENGINE_TYPES.HEV
|
295
|
+
elif entry["type"] == "PE":
|
296
|
+
entry_engine_type = ENGINE_TYPES.PHEV
|
295
297
|
vehicle: Vehicle = Vehicle(
|
296
298
|
id=entry["vehicleId"],
|
297
299
|
name=entry["nickname"],
|
@@ -347,7 +349,10 @@ class KiaUvoApiEU(ApiImpl):
|
|
347
349
|
else:
|
348
350
|
self._update_vehicle_properties_ccs2(vehicle, state)
|
349
351
|
|
350
|
-
if
|
352
|
+
if (
|
353
|
+
vehicle.engine_type == ENGINE_TYPES.EV
|
354
|
+
or vehicle.engine_type == ENGINE_TYPES.PHEV
|
355
|
+
):
|
351
356
|
try:
|
352
357
|
state = self._get_driving_info(token, vehicle)
|
353
358
|
except Exception as e:
|
@@ -371,7 +376,10 @@ class KiaUvoApiEU(ApiImpl):
|
|
371
376
|
self._update_vehicle_properties(vehicle, state)
|
372
377
|
# Only call for driving info on cars we know have a chance of supporting it.
|
373
378
|
# Could be expanded if other types do support it.
|
374
|
-
if
|
379
|
+
if (
|
380
|
+
vehicle.engine_type == ENGINE_TYPES.EV
|
381
|
+
or vehicle.engine_type == ENGINE_TYPES.PHEV
|
382
|
+
):
|
375
383
|
try:
|
376
384
|
state = self._get_driving_info(token, vehicle)
|
377
385
|
except Exception as e:
|
@@ -527,8 +535,6 @@ class KiaUvoApiEU(ApiImpl):
|
|
527
535
|
elif charging_door_state == 1:
|
528
536
|
vehicle.ev_charge_port_door_is_open = True
|
529
537
|
|
530
|
-
# TODO: vehicle.ev_driving_range
|
531
|
-
|
532
538
|
vehicle.total_driving_range = (
|
533
539
|
float(
|
534
540
|
get_child_value(
|
@@ -544,6 +550,14 @@ class KiaUvoApiEU(ApiImpl):
|
|
544
550
|
],
|
545
551
|
)
|
546
552
|
|
553
|
+
if vehicle.engine_type == ENGINE_TYPES.EV:
|
554
|
+
# ev_driving_range is the same as total_driving_range for pure EV
|
555
|
+
vehicle.ev_driving_range = (
|
556
|
+
vehicle.total_driving_range,
|
557
|
+
vehicle.total_driving_range_unit,
|
558
|
+
)
|
559
|
+
# TODO: vehicle.ev_driving_range for non EV
|
560
|
+
|
547
561
|
vehicle.washer_fluid_warning_is_on = get_child_value(
|
548
562
|
state, "Body.Windshield.Front.WasherFluid.LevelLow"
|
549
563
|
)
|
{hyundai_kia_connect_api-3.17.2.dist-info → hyundai_kia_connect_api-3.17.4.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.17.
|
3
|
+
Version: 3.17.4
|
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
|
{hyundai_kia_connect_api-3.17.2.dist-info → hyundai_kia_connect_api-3.17.4.dist-info}/RECORD
RENAMED
@@ -4,7 +4,7 @@ hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=kQo3PA_FktsAHhdugZi0lrpMcp96WNXcv
|
|
4
4
|
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=ncAUEWqepHwYTZqu7JDNAozguucqqIg-HKPvpN_54CE,48738
|
5
5
|
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=7bcDLcJ3JLLoWldPy514eKhWUAo1Gb1mu_3SaXno4v8,30358
|
6
6
|
hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=MjXdDdm1wDVvFZhgg8AjAF6X2SB-AIFMTE5iRmr80QM,47384
|
7
|
-
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=
|
7
|
+
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=DiY1HuVyA2cwgNsrtsI9vsQAz5dnewJhCqCa42-PwTs,68545
|
8
8
|
hyundai_kia_connect_api/Token.py,sha256=ZsPvXh1ID7FUTGHAqhZUZyrKT7xVbOtIn6FRJn4Ygf0,370
|
9
9
|
hyundai_kia_connect_api/Vehicle.py,sha256=jx8m3z9QRg9BvLLMT8wL0yD6jCnsA_w1nYE19Pm0bUo,13644
|
10
10
|
hyundai_kia_connect_api/VehicleManager.py,sha256=JdJ8tUCVGciVC1SJubmMQqEZ7KXp6DlI_UiOQPkDeN4,9654
|
@@ -12,9 +12,9 @@ hyundai_kia_connect_api/__init__.py,sha256=6UwXW6Lj5VnRtWNOt_0dLFdOYlcbysHCc6ol_
|
|
12
12
|
hyundai_kia_connect_api/const.py,sha256=C25jgV79u7SZF5xDy96gol_CekIkyI4h3goTyDEmng0,1967
|
13
13
|
hyundai_kia_connect_api/exceptions.py,sha256=m7gyDnvA5OVAK4EXSP_ZwE0s0uV8HsGUV0tiYwqofK0,1343
|
14
14
|
hyundai_kia_connect_api/utils.py,sha256=rfhERPXkzqelsaieLtiAyN9xDDTheNyKX5aBPRLrHf4,1117
|
15
|
-
hyundai_kia_connect_api-3.17.
|
16
|
-
hyundai_kia_connect_api-3.17.
|
17
|
-
hyundai_kia_connect_api-3.17.
|
18
|
-
hyundai_kia_connect_api-3.17.
|
19
|
-
hyundai_kia_connect_api-3.17.
|
20
|
-
hyundai_kia_connect_api-3.17.
|
15
|
+
hyundai_kia_connect_api-3.17.4.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
16
|
+
hyundai_kia_connect_api-3.17.4.dist-info/LICENSE,sha256=AsZwIRViAze7ObwO6V6IB0q4caXv6DJS2-3dsU1FWy8,1069
|
17
|
+
hyundai_kia_connect_api-3.17.4.dist-info/METADATA,sha256=xoRBn7z3XyKgS232AjPlnaFlWjZn2sYny2msCKzHajA,5770
|
18
|
+
hyundai_kia_connect_api-3.17.4.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
19
|
+
hyundai_kia_connect_api-3.17.4.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
20
|
+
hyundai_kia_connect_api-3.17.4.dist-info/RECORD,,
|
{hyundai_kia_connect_api-3.17.2.dist-info → hyundai_kia_connect_api-3.17.4.dist-info}/AUTHORS.rst
RENAMED
File without changes
|
{hyundai_kia_connect_api-3.17.2.dist-info → hyundai_kia_connect_api-3.17.4.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.17.2.dist-info → hyundai_kia_connect_api-3.17.4.dist-info}/top_level.txt
RENAMED
File without changes
|