hyundai-kia-connect-api 3.3.11__py2.py3-none-any.whl → 3.3.12__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.
@@ -82,6 +82,7 @@ def _check_response_for_errors(response: dict) -> None:
82
82
  - F: failure
83
83
  resCode / resMsg known values:
84
84
  - 0000: no error
85
+ - 4002: "Invalid request body - invalid deviceId", relogin will resolve but a bandaid.
85
86
  - 4004: "Duplicate request"
86
87
  - 4081: "Request timeout"
87
88
  - 5031: "Unavailable remote control - Service Temporary Unavailable"
@@ -92,6 +93,7 @@ def _check_response_for_errors(response: dict) -> None:
92
93
  """
93
94
 
94
95
  error_code_mapping = {
96
+ "4002": DeviceIDError,
95
97
  "4004": DuplicateRequestError,
96
98
  "4081": RequestTimeoutError,
97
99
  "5031": ServiceTemporaryUnavailable,
@@ -108,7 +110,9 @@ def _check_response_for_errors(response: dict) -> None:
108
110
  if response["resCode"] in error_code_mapping:
109
111
  raise error_code_mapping[response["resCode"]](response["resMsg"])
110
112
  else:
111
- raise APIError(f"Server returned: '{response['resMsg']}'")
113
+ raise APIError(
114
+ f"Server returned: '{response['rescode']}' '{response['resMsg']}'"
115
+ )
112
116
 
113
117
 
114
118
  class KiaUvoApiEU(ApiImpl):
@@ -18,6 +18,14 @@ class AuthenticationError(HyundaiKiaException):
18
18
  pass
19
19
 
20
20
 
21
+ class DeviceIDError(AuthenticationError):
22
+ """
23
+ Raised upon receipt of an Invalid Device ID error.
24
+ """
25
+
26
+ pass
27
+
28
+
21
29
  class APIError(HyundaiKiaException):
22
30
  """
23
31
  Generic API error
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hyundai-kia-connect-api
3
- Version: 3.3.11
3
+ Version: 3.3.12
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
@@ -3,17 +3,17 @@ hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=QStSWimMzxcBGmM0NyVk0egw
3
3
  hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=NWQNOH3lQzxjyifeMIAjPfWamVzArqymZ8VgKP3_VMY,27449
4
4
  hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=8OSXWRw0Nt8l5Ac63iZwBYiYK-x89j_k-tqEip4NaUw,29985
5
5
  hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=QmjevKCMt4GzhtF7ZZ5tfyV0rAqNTE9EHmhQr4u1Pgw,51311
6
- hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=aFslT8VKK5BQCGZoftenGJGf-e6z6p2GFOeXprTHZpg,54100
6
+ hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=lDa7b1SCk0maY23BWq69TJZLqbYuUroXwe4jcWC_KL4,54278
7
7
  hyundai_kia_connect_api/Token.py,sha256=odHSR-D7CnL19hh6f6cc3rablchzqS0I2GXf7jWvsQE,369
8
8
  hyundai_kia_connect_api/Vehicle.py,sha256=AKEjl8ct9LPGPwWOiSclUQPXZK822MzojbaQbfIzBak,12772
9
9
  hyundai_kia_connect_api/VehicleManager.py,sha256=eCMXePM3yhzVx1FBFLYhQ1pQHGmP07l3pqRMw18VPUA,9083
10
10
  hyundai_kia_connect_api/__init__.py,sha256=nHv9mufHuKHAwEZncS4EQRxYMohsR9NdLltOSts83lo,423
11
11
  hyundai_kia_connect_api/const.py,sha256=Yb7yJtALZzsmnizzzqiKpdZbh1FTu4jc9tFj-tuB4rc,1690
12
- hyundai_kia_connect_api/exceptions.py,sha256=pUKegYbLkRXmgfAW4ApW805xwyhcjOA6SEo1VVmwiDU,1228
12
+ hyundai_kia_connect_api/exceptions.py,sha256=ucDTprH8l3n9REeYDzpPsDpt_Y-i1WHkulw_7C3dJ6A,1353
13
13
  hyundai_kia_connect_api/utils.py,sha256=u0F4PdWA0l_ikZaWJU_9WAwtW1t__KPOiHDef8Ka7ck,751
14
- hyundai_kia_connect_api-3.3.11.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
15
- hyundai_kia_connect_api-3.3.11.dist-info/LICENSE,sha256=AsZwIRViAze7ObwO6V6IB0q4caXv6DJS2-3dsU1FWy8,1069
16
- hyundai_kia_connect_api-3.3.11.dist-info/METADATA,sha256=Iw4fHa9xqPfXL1IYhysnrueyLQzVBSLY3fXFpxwLibg,5715
17
- hyundai_kia_connect_api-3.3.11.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
18
- hyundai_kia_connect_api-3.3.11.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
19
- hyundai_kia_connect_api-3.3.11.dist-info/RECORD,,
14
+ hyundai_kia_connect_api-3.3.12.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
15
+ hyundai_kia_connect_api-3.3.12.dist-info/LICENSE,sha256=AsZwIRViAze7ObwO6V6IB0q4caXv6DJS2-3dsU1FWy8,1069
16
+ hyundai_kia_connect_api-3.3.12.dist-info/METADATA,sha256=uc8IkZ9wB3_Umi2_JPxNgU4dC93G76JyMeCpjA3iZ_c,5715
17
+ hyundai_kia_connect_api-3.3.12.dist-info/WHEEL,sha256=a-zpFRIJzOq5QfuhBzbhiA1eHTzNCJn8OdRvhdNX0Rk,110
18
+ hyundai_kia_connect_api-3.3.12.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
19
+ hyundai_kia_connect_api-3.3.12.dist-info/RECORD,,