hyundai-kia-connect-api 3.32.2__py2.py3-none-any.whl → 3.32.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.
Potentially problematic release.
This version of hyundai-kia-connect-api might be problematic. Click here for more details.
- hyundai_kia_connect_api/KiaUvoApiCA.py +2 -20
- {hyundai_kia_connect_api-3.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/RECORD +8 -8
- {hyundai_kia_connect_api-3.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/LICENSE +0 -0
- {hyundai_kia_connect_api-3.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/entry_points.txt +0 -0
- {hyundai_kia_connect_api-3.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/top_level.txt +0 -0
@@ -6,7 +6,6 @@ import time
|
|
6
6
|
import datetime as dt
|
7
7
|
import json
|
8
8
|
import logging
|
9
|
-
|
10
9
|
import pytz
|
11
10
|
import requests
|
12
11
|
|
@@ -38,28 +37,12 @@ from .utils import (
|
|
38
37
|
parse_datetime,
|
39
38
|
)
|
40
39
|
|
41
|
-
import ssl
|
42
|
-
import urllib3
|
43
40
|
|
44
41
|
CIPHERS = "ALL:@SECLEVEL=0"
|
45
42
|
|
46
43
|
_LOGGER = logging.getLogger(__name__)
|
47
44
|
|
48
45
|
|
49
|
-
class cipherAdapter(requests.adapters.HTTPAdapter):
|
50
|
-
"""
|
51
|
-
A HTTPAdapter that re-enables poor ciphers required by Hyundai.
|
52
|
-
"""
|
53
|
-
|
54
|
-
def init_poolmanager(self, connections, maxsize, block=False):
|
55
|
-
context = ssl.create_default_context()
|
56
|
-
context.set_ciphers(CIPHERS)
|
57
|
-
context.options |= getattr(ssl, "OP_LEGACY_SERVER_CONNECT", 0x4)
|
58
|
-
self.poolmanager = urllib3.poolmanager.PoolManager(
|
59
|
-
ssl_version=ssl.PROTOCOL_TLS, ssl_context=context
|
60
|
-
)
|
61
|
-
|
62
|
-
|
63
46
|
class KiaUvoApiCA(ApiImpl):
|
64
47
|
"""KiaUvoApiCA"""
|
65
48
|
|
@@ -89,7 +72,7 @@ class KiaUvoApiCA(ApiImpl):
|
|
89
72
|
"host": self.BASE_URL,
|
90
73
|
"origin": "https://" + self.BASE_URL,
|
91
74
|
"referer": "https://" + self.BASE_URL + "/login",
|
92
|
-
"from": "
|
75
|
+
"from": "CWP",
|
93
76
|
"language": "0",
|
94
77
|
"offset": "0",
|
95
78
|
"sec-fetch-dest": "empty",
|
@@ -102,7 +85,6 @@ class KiaUvoApiCA(ApiImpl):
|
|
102
85
|
def sessions(self):
|
103
86
|
if not self._sessions:
|
104
87
|
self._sessions = requests.Session()
|
105
|
-
self._sessions.mount("https://" + self.BASE_URL, cipherAdapter())
|
106
88
|
return self._sessions
|
107
89
|
|
108
90
|
def _check_response_for_errors(self, response: dict) -> None:
|
@@ -137,7 +119,7 @@ class KiaUvoApiCA(ApiImpl):
|
|
137
119
|
_LOGGER.debug(f"{DOMAIN} - Sign In Response {response.text}")
|
138
120
|
response = response.json()
|
139
121
|
self._check_response_for_errors(response)
|
140
|
-
response = response["result"]
|
122
|
+
response = response["result"]["token"]
|
141
123
|
access_token = response["accessToken"]
|
142
124
|
refresh_token = response["refreshToken"]
|
143
125
|
_LOGGER.debug(f"{DOMAIN} - Access Token Value {access_token}")
|
{hyundai_kia_connect_api-3.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.32.
|
3
|
+
Version: 3.32.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.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/RECORD
RENAMED
@@ -2,7 +2,7 @@ hyundai_kia_connect_api/ApiImpl.py,sha256=eCEQEz6L-7EN2eKnrYiHrYC0pPV-ngGFcayF0t
|
|
2
2
|
hyundai_kia_connect_api/ApiImplType1.py,sha256=PnKwpbCoYGOXBWzBLIlDSrC6daIYeW9qlfW7TM4HCU0,12184
|
3
3
|
hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py,sha256=Tx-L4ZWiPhq-uHcjWSUzjLEsfunV6nzyzqQpjPTYuIo,36831
|
4
4
|
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=tslh0gzvPBwYJmcWlf9B0l7PyYZdy2e7GqpRkl8_Svk,48471
|
5
|
-
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=
|
5
|
+
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=uANAbsqG-ywLxIWLPPzcsougiRL8hho9gzg2kxErgT8,30874
|
6
6
|
hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=cwIPZ0dU6HolKdooUQeQKlLAic6YU8dQmNs0VQDBgpQ,47035
|
7
7
|
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=TxgO2dfLjKSKfSkRMoTL_fbmzRFRPb8oJ9IDztD50Ug,71300
|
8
8
|
hyundai_kia_connect_api/KiaUvoApiUSA.py,sha256=G2sGtv88sBZuAz8qKYq_3_JNXIkxEjOBAzwM6R8GUi0,30548
|
@@ -14,10 +14,10 @@ hyundai_kia_connect_api/bluelink.py,sha256=sBU7hlElie21GU4Ma-i4a5vdztGc2jtmlVBbb
|
|
14
14
|
hyundai_kia_connect_api/const.py,sha256=scBlhrMims0W6_pESVVdQz2uUxczg2cf2qDQ7avbhVo,2174
|
15
15
|
hyundai_kia_connect_api/exceptions.py,sha256=m7gyDnvA5OVAK4EXSP_ZwE0s0uV8HsGUV0tiYwqofK0,1343
|
16
16
|
hyundai_kia_connect_api/utils.py,sha256=J0aXUX-nKIoS3XbelatNh-DZlHRU2_DYz_Mg_ZUKQJU,1957
|
17
|
-
hyundai_kia_connect_api-3.32.
|
18
|
-
hyundai_kia_connect_api-3.32.
|
19
|
-
hyundai_kia_connect_api-3.32.
|
20
|
-
hyundai_kia_connect_api-3.32.
|
21
|
-
hyundai_kia_connect_api-3.32.
|
22
|
-
hyundai_kia_connect_api-3.32.
|
23
|
-
hyundai_kia_connect_api-3.32.
|
17
|
+
hyundai_kia_connect_api-3.32.3.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
18
|
+
hyundai_kia_connect_api-3.32.3.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
|
19
|
+
hyundai_kia_connect_api-3.32.3.dist-info/METADATA,sha256=E1v9297ptlZ8mATwHUzP88PdwPQZ3OHXGMxT2t7E1jk,6872
|
20
|
+
hyundai_kia_connect_api-3.32.3.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
|
21
|
+
hyundai_kia_connect_api-3.32.3.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
|
22
|
+
hyundai_kia_connect_api-3.32.3.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
23
|
+
hyundai_kia_connect_api-3.32.3.dist-info/RECORD,,
|
{hyundai_kia_connect_api-3.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/AUTHORS.rst
RENAMED
File without changes
|
{hyundai_kia_connect_api-3.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.32.2.dist-info → hyundai_kia_connect_api-3.32.3.dist-info}/top_level.txt
RENAMED
File without changes
|