hyundai-kia-connect-api 3.40.1__py2.py3-none-any.whl → 3.40.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.
- hyundai_kia_connect_api/ApiImplType1.py +3 -0
- hyundai_kia_connect_api/exceptions.py +8 -0
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.2.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.2.dist-info}/RECORD +9 -9
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.2.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.2.dist-info}/entry_points.txt +0 -0
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.2.dist-info}/licenses/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.2.dist-info}/licenses/LICENSE +0 -0
- {hyundai_kia_connect_api-3.40.1.dist-info → hyundai_kia_connect_api-3.40.2.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,
|
@@ -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.2.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.2
|
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.2.dist-info}/RECORD
RENAMED
@@ -1,5 +1,5 @@
|
|
1
1
|
hyundai_kia_connect_api/ApiImpl.py,sha256=UeG2FH4KCdU5LvGp5Ks793vrWbwBx8MN_DedbVRRouM,9612
|
2
|
-
hyundai_kia_connect_api/ApiImplType1.py,sha256=
|
2
|
+
hyundai_kia_connect_api/ApiImplType1.py,sha256=6LSqH-p5balKKVkE4lvw3FqLEToKRHBhfm83656eIDM,38243
|
3
3
|
hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py,sha256=TNuFJIZ6Kpd5vbV5rVJjcqp7z-Ys3blzsz6YYWZThiA,36710
|
4
4
|
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=433Db-rp3drhyY8ZvN-GiVP85pl90Wwu4A2uAdkYH1c,36100
|
5
5
|
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=qZsHdXnxAr9N3FnF6IxpnKbSkv1fHbCDcfDLLbZLm5Q,33784
|
@@ -13,12 +13,12 @@ hyundai_kia_connect_api/VehicleManager.py,sha256=BbMeM5HU38nimNTN4QsSFuEcsbeUYCc
|
|
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.2.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
19
|
+
hyundai_kia_connect_api-3.40.2.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
|
20
|
+
hyundai_kia_connect_api-3.40.2.dist-info/METADATA,sha256=rHiMchcPK1TgX6geV_faxQH_xe8RgtpbyApOUmyOwXk,7156
|
21
|
+
hyundai_kia_connect_api-3.40.2.dist-info/WHEEL,sha256=XAkygS4h1cf0JYWV13kJhTWht2y9NqKAsZuiTHc2920,109
|
22
|
+
hyundai_kia_connect_api-3.40.2.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
|
23
|
+
hyundai_kia_connect_api-3.40.2.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
24
|
+
hyundai_kia_connect_api-3.40.2.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.2.dist-info}/top_level.txt
RENAMED
File without changes
|