hyundai-kia-connect-api 3.40.1__py2.py3-none-any.whl → 3.40.3__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/ApiImplType1.py +3 -0
- hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py +7 -0
- hyundai_kia_connect_api/KiaUvoApiUSA.py +20 -0
- hyundai_kia_connect_api/exceptions.py +8 -0
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.3.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.3.dist-info}/RECORD +11 -11
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.3.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.3.dist-info}/entry_points.txt +0 -0
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.3.dist-info}/licenses/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.3.dist-info}/licenses/LICENSE +0 -0
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.3.dist-info}/top_level.txt +0 -0
@@ -41,6 +41,7 @@ from .exceptions import (
|
|
41
41
|
InvalidAPIResponseError,
|
42
42
|
RateLimitingError,
|
43
43
|
DeviceIDError,
|
44
|
+
PINMissingError,
|
44
45
|
)
|
45
46
|
|
46
47
|
USER_AGENT_OK_HTTP: str = "okhttp/3.12.0"
|
@@ -954,6 +955,8 @@ class ApiImplType1(ApiImpl):
|
|
954
955
|
return response["msgId"]
|
955
956
|
|
956
957
|
def _get_control_token(self, token: Token) -> Token:
|
958
|
+
if token.pin is None:
|
959
|
+
raise PINMissingError("PIN is not set, action will fail.")
|
957
960
|
url = self.USER_API_URL + "pin?token="
|
958
961
|
headers = {
|
959
962
|
"Authorization": token.access_token,
|
@@ -811,9 +811,16 @@ class HyundaiBlueLinkApiUSA(ApiImpl):
|
|
811
811
|
if vehicle.engine_type == ENGINE_TYPES.EV:
|
812
812
|
data = {
|
813
813
|
"airCtrl": int(options.climate),
|
814
|
+
"igniOnDuration": options.duration,
|
814
815
|
"airTemp": {"value": str(options.set_temp), "unit": 1},
|
815
816
|
"defrost": options.defrost,
|
816
817
|
"heating1": int(options.heating),
|
818
|
+
"seatHeaterVentInfo": {
|
819
|
+
"drvSeatHeatState": options.front_left_seat,
|
820
|
+
"astSeatHeatState": options.front_right_seat,
|
821
|
+
"rlSeatHeatState": options.rear_left_seat,
|
822
|
+
"rrSeatHeatState": options.rear_right_seat,
|
823
|
+
},
|
817
824
|
}
|
818
825
|
else:
|
819
826
|
data = {
|
@@ -401,6 +401,26 @@ class KiaUvoApiUSA(ApiImpl):
|
|
401
401
|
vehicle.back_right_window_is_open = get_child_value(
|
402
402
|
state, "lastVehicleInfo.vehicleStatusRpt.vehicleStatus.windowOpen.backRight"
|
403
403
|
)
|
404
|
+
if vehicle.front_left_window_is_open is None:
|
405
|
+
vehicle.front_left_window_is_open = get_child_value(
|
406
|
+
state,
|
407
|
+
"lastVehicleInfo.vehicleStatusRpt.vehicleStatus.evStatus.windowStatus.windowFL",
|
408
|
+
)
|
409
|
+
if vehicle.front_right_window_is_open is None:
|
410
|
+
vehicle.front_right_window_is_open = get_child_value(
|
411
|
+
state,
|
412
|
+
"lastVehicleInfo.vehicleStatusRpt.vehicleStatus.evStatus.windowStatus.windowFR",
|
413
|
+
)
|
414
|
+
if vehicle.back_left_window_is_open is None:
|
415
|
+
vehicle.back_left_window_is_open = get_child_value(
|
416
|
+
state,
|
417
|
+
"lastVehicleInfo.vehicleStatusRpt.vehicleStatus.evStatus.windowStatus.windowRL",
|
418
|
+
)
|
419
|
+
if vehicle.back_right_window_is_open is None:
|
420
|
+
vehicle.back_right_window_is_open = get_child_value(
|
421
|
+
state,
|
422
|
+
"lastVehicleInfo.vehicleStatusRpt.vehicleStatus.evStatus.windowStatus.windowRR",
|
423
|
+
)
|
404
424
|
vehicle.ev_battery_percentage = get_child_value(
|
405
425
|
state,
|
406
426
|
"lastVehicleInfo.vehicleStatusRpt.vehicleStatus.evStatus.batteryStatus",
|
@@ -11,6 +11,14 @@ class HyundaiKiaException(Exception):
|
|
11
11
|
pass
|
12
12
|
|
13
13
|
|
14
|
+
class PINMissingError(HyundaiKiaException):
|
15
|
+
"""
|
16
|
+
Raised upon receipt of an authentication error.
|
17
|
+
"""
|
18
|
+
|
19
|
+
pass
|
20
|
+
|
21
|
+
|
14
22
|
class AuthenticationError(HyundaiKiaException):
|
15
23
|
"""
|
16
24
|
Raised upon receipt of an authentication error.
|
{hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.3.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.40.
|
3
|
+
Version: 3.40.3
|
4
4
|
Summary: Python Boilerplate contains all the boilerplate you need to create a Python package.
|
5
5
|
Home-page: https://github.com/Hyundai-Kia-Connect/hyundai_kia_connect_api
|
6
6
|
Author: Fuat Akgun
|
{hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.3.dist-info}/RECORD
RENAMED
@@ -1,24 +1,24 @@
|
|
1
1
|
hyundai_kia_connect_api/ApiImpl.py,sha256=UeG2FH4KCdU5LvGp5Ks793vrWbwBx8MN_DedbVRRouM,9612
|
2
|
-
hyundai_kia_connect_api/ApiImplType1.py,sha256=
|
3
|
-
hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py,sha256=
|
2
|
+
hyundai_kia_connect_api/ApiImplType1.py,sha256=6LSqH-p5balKKVkE4lvw3FqLEToKRHBhfm83656eIDM,38243
|
3
|
+
hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py,sha256=dg4r6cI38bFuX-vcI76N0kByKVUNZUlSZ8Jp_68xnAM,37079
|
4
4
|
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=433Db-rp3drhyY8ZvN-GiVP85pl90Wwu4A2uAdkYH1c,36100
|
5
5
|
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=qZsHdXnxAr9N3FnF6IxpnKbSkv1fHbCDcfDLLbZLm5Q,33784
|
6
6
|
hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=WP-rRI3wZmjuLYZmPXeOSk2NNNc6UhTrpOMuYMG6-iE,47043
|
7
7
|
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=ZV3yWd4W-zyN-xS6o_ItQtedLAkEvk5C_yTHGvT2qqU,50172
|
8
8
|
hyundai_kia_connect_api/KiaUvoApiIN.py,sha256=q17gaDhp38wJwn1ceTou1QcDiuDW2wGGjOFTMDRROl8,36318
|
9
|
-
hyundai_kia_connect_api/KiaUvoApiUSA.py,sha256=
|
9
|
+
hyundai_kia_connect_api/KiaUvoApiUSA.py,sha256=vwY5wsy68phV_eRTlwI1Q_fL2XY9y4aKxawwWwU_94c,31416
|
10
10
|
hyundai_kia_connect_api/Token.py,sha256=ZsPvXh1ID7FUTGHAqhZUZyrKT7xVbOtIn6FRJn4Ygf0,370
|
11
11
|
hyundai_kia_connect_api/Vehicle.py,sha256=DPMwJ2fXpV3VxdTdX6JGXfIVX5etyH4r6cnk_Q0AlE8,19039
|
12
12
|
hyundai_kia_connect_api/VehicleManager.py,sha256=BbMeM5HU38nimNTN4QsSFuEcsbeUYCcFdC7-MCU52AY,12183
|
13
13
|
hyundai_kia_connect_api/__init__.py,sha256=IkyVeIMbcFJZgLaiiNnUVA1Ferxvrm1bXHKVg01cxvc,319
|
14
14
|
hyundai_kia_connect_api/bluelink.py,sha256=JiNIHl-Qi8zwqyN6ywKg5CdXOLT74WkvpjVcn-rYEjI,19730
|
15
15
|
hyundai_kia_connect_api/const.py,sha256=ImISRt4QarbN8BOBlDGYRB3F69NKCcGu8ddFvNPhhXU,2370
|
16
|
-
hyundai_kia_connect_api/exceptions.py,sha256=
|
16
|
+
hyundai_kia_connect_api/exceptions.py,sha256=0dwKEPXN8KQVTeueDj2fL3E-TQMU7LjTEJbhcq8Mjx8,1467
|
17
17
|
hyundai_kia_connect_api/utils.py,sha256=J0aXUX-nKIoS3XbelatNh-DZlHRU2_DYz_Mg_ZUKQJU,1957
|
18
|
-
hyundai_kia_connect_api-3.40.
|
19
|
-
hyundai_kia_connect_api-3.40.
|
20
|
-
hyundai_kia_connect_api-3.40.
|
21
|
-
hyundai_kia_connect_api-3.40.
|
22
|
-
hyundai_kia_connect_api-3.40.
|
23
|
-
hyundai_kia_connect_api-3.40.
|
24
|
-
hyundai_kia_connect_api-3.40.
|
18
|
+
hyundai_kia_connect_api-3.40.3.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
19
|
+
hyundai_kia_connect_api-3.40.3.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
|
20
|
+
hyundai_kia_connect_api-3.40.3.dist-info/METADATA,sha256=SNhGpauZOI_23QKHwvaJZXaRl4VNGlt0zlqfAhyglr0,7156
|
21
|
+
hyundai_kia_connect_api-3.40.3.dist-info/WHEEL,sha256=XAkygS4h1cf0JYWV13kJhTWht2y9NqKAsZuiTHc2920,109
|
22
|
+
hyundai_kia_connect_api-3.40.3.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
|
23
|
+
hyundai_kia_connect_api-3.40.3.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
24
|
+
hyundai_kia_connect_api-3.40.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.3.dist-info}/top_level.txt
RENAMED
File without changes
|