hyundai-kia-connect-api 3.35.5__py2.py3-none-any.whl → 3.35.7__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 +4 -4
- hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py +0 -2
- hyundai_kia_connect_api/KiaUvoApiAU.py +0 -5
- hyundai_kia_connect_api/KiaUvoApiCA.py +0 -2
- hyundai_kia_connect_api/KiaUvoApiEU.py +0 -5
- hyundai_kia_connect_api/KiaUvoApiUSA.py +0 -3
- {hyundai_kia_connect_api-3.35.5.dist-info → hyundai_kia_connect_api-3.35.7.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.35.5.dist-info → hyundai_kia_connect_api-3.35.7.dist-info}/RECORD +13 -13
- {hyundai_kia_connect_api-3.35.5.dist-info → hyundai_kia_connect_api-3.35.7.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.35.5.dist-info → hyundai_kia_connect_api-3.35.7.dist-info}/entry_points.txt +0 -0
- {hyundai_kia_connect_api-3.35.5.dist-info → hyundai_kia_connect_api-3.35.7.dist-info}/licenses/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.35.5.dist-info → hyundai_kia_connect_api-3.35.7.dist-info}/licenses/LICENSE +0 -0
- {hyundai_kia_connect_api-3.35.5.dist-info → hyundai_kia_connect_api-3.35.7.dist-info}/top_level.txt +0 -0
@@ -213,11 +213,11 @@ class ApiImplType1(ApiImpl):
|
|
213
213
|
state, "Cabin.Door.Row2.Right.Lock"
|
214
214
|
)
|
215
215
|
|
216
|
-
vehicle.is_locked =
|
216
|
+
vehicle.is_locked = (
|
217
217
|
vehicle.front_left_door_is_locked
|
218
|
-
|
219
|
-
|
220
|
-
|
218
|
+
and vehicle.front_right_door_is_locked
|
219
|
+
and vehicle.back_left_door_is_locked
|
220
|
+
and vehicle.back_right_door_is_locked
|
221
221
|
)
|
222
222
|
|
223
223
|
vehicle.hood_is_open = get_child_value(state, "Body.Hood.Open")
|
@@ -136,8 +136,6 @@ class HyundaiBlueLinkApiUSA(ApiImpl):
|
|
136
136
|
access_token = response["access_token"]
|
137
137
|
refresh_token = response["refresh_token"]
|
138
138
|
expires_in = float(response["expires_in"])
|
139
|
-
_LOGGER.debug(f"{DOMAIN} - Access Token Value {access_token}")
|
140
|
-
_LOGGER.debug(f"{DOMAIN} - Refresh Token Value {refresh_token}")
|
141
139
|
|
142
140
|
valid_until = dt.datetime.now(pytz.utc) + dt.timedelta(seconds=expires_in)
|
143
141
|
|
@@ -952,15 +952,12 @@ class KiaUvoApiAU(ApiImplType1):
|
|
952
952
|
+ "%2Fapi%2Fv1%2Fuser%2Foauth2%2Fredirect&code="
|
953
953
|
+ authorization_code
|
954
954
|
)
|
955
|
-
_LOGGER.debug(f"{DOMAIN} - Get Access Token Data: {headers}{data}")
|
956
955
|
response = requests.post(url, data=data, headers=headers)
|
957
956
|
response = response.json()
|
958
|
-
_LOGGER.debug(f"{DOMAIN} - Get Access Token Response: {response}")
|
959
957
|
|
960
958
|
token_type = response["token_type"]
|
961
959
|
access_token = token_type + " " + response["access_token"]
|
962
960
|
authorization_code = response["refresh_token"]
|
963
|
-
_LOGGER.debug(f"{DOMAIN} - Access Token Value {access_token}")
|
964
961
|
return token_type, access_token, authorization_code
|
965
962
|
|
966
963
|
def _get_refresh_token(self, authorization_code, stamp):
|
@@ -977,10 +974,8 @@ class KiaUvoApiAU(ApiImplType1):
|
|
977
974
|
}
|
978
975
|
|
979
976
|
data = "grant_type=refresh_token&refresh_token=" + authorization_code
|
980
|
-
_LOGGER.debug(f"{DOMAIN} - Get Refresh Token Data: {data}")
|
981
977
|
response = requests.post(url, data=data, headers=headers)
|
982
978
|
response = response.json()
|
983
|
-
_LOGGER.debug(f"{DOMAIN} - Get Refresh Token Response: {response}")
|
984
979
|
token_type = response["token_type"]
|
985
980
|
refresh_token = token_type + " " + response["access_token"]
|
986
981
|
return token_type, refresh_token
|
@@ -122,8 +122,6 @@ class KiaUvoApiCA(ApiImpl):
|
|
122
122
|
token_expire_in = int(response["expireIn"]) - 60
|
123
123
|
access_token = response["accessToken"]
|
124
124
|
refresh_token = response["refreshToken"]
|
125
|
-
_LOGGER.debug(f"{DOMAIN} - Access Token Value {access_token}")
|
126
|
-
_LOGGER.debug(f"{DOMAIN} - Refresh Token Value {refresh_token}")
|
127
125
|
|
128
126
|
valid_until = dt.datetime.now(pytz.utc) + dt.timedelta(seconds=token_expire_in)
|
129
127
|
|
@@ -1301,15 +1301,12 @@ class KiaUvoApiEU(ApiImplType1):
|
|
1301
1301
|
+ "%3A8080%2Fapi%2Fv1%2Fuser%2Foauth2%2Fredirect&code="
|
1302
1302
|
+ authorization_code
|
1303
1303
|
)
|
1304
|
-
_LOGGER.debug(f"{DOMAIN} - Get Access Token Data: {headers}{data}")
|
1305
1304
|
response = requests.post(url, data=data, headers=headers)
|
1306
1305
|
response = response.json()
|
1307
|
-
_LOGGER.debug(f"{DOMAIN} - Get Access Token Response: {response}")
|
1308
1306
|
|
1309
1307
|
token_type = response["token_type"]
|
1310
1308
|
access_token = token_type + " " + response["access_token"]
|
1311
1309
|
authorization_code = response["refresh_token"]
|
1312
|
-
_LOGGER.debug(f"{DOMAIN} - Access Token Value {access_token}")
|
1313
1310
|
return token_type, access_token, authorization_code
|
1314
1311
|
|
1315
1312
|
def _get_refresh_token(self, stamp, authorization_code):
|
@@ -1329,10 +1326,8 @@ class KiaUvoApiEU(ApiImplType1):
|
|
1329
1326
|
"grant_type=refresh_token&redirect_uri=https%3A%2F%2Fwww.getpostman.com%2Foauth2%2Fcallback&refresh_token=" # noqa
|
1330
1327
|
+ authorization_code
|
1331
1328
|
)
|
1332
|
-
_LOGGER.debug(f"{DOMAIN} - Get Refresh Token Data: {data}")
|
1333
1329
|
response = requests.post(url, data=data, headers=headers)
|
1334
1330
|
response = response.json()
|
1335
|
-
_LOGGER.debug(f"{DOMAIN} - Get Refresh Token Response: {response}")
|
1336
1331
|
token_type = response["token_type"]
|
1337
1332
|
refresh_token = token_type + " " + response["access_token"]
|
1338
1333
|
return token_type, refresh_token
|
@@ -65,9 +65,6 @@ def request_with_active_session(func):
|
|
65
65
|
token = kwargs["token"]
|
66
66
|
vehicle = kwargs["vehicle"]
|
67
67
|
new_token = self.login(token.username, token.password)
|
68
|
-
_LOGGER.debug(
|
69
|
-
f"{DOMAIN} - Old token:{token.access_token}, new token:{new_token.access_token}" # noqa
|
70
|
-
)
|
71
68
|
token.access_token = new_token.access_token
|
72
69
|
token.valid_until = new_token.valid_until
|
73
70
|
json_body = kwargs.get("json_body", None)
|
{hyundai_kia_connect_api-3.35.5.dist-info → hyundai_kia_connect_api-3.35.7.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.35.
|
3
|
+
Version: 3.35.7
|
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.35.5.dist-info → hyundai_kia_connect_api-3.35.7.dist-info}/RECORD
RENAMED
@@ -1,11 +1,11 @@
|
|
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=
|
4
|
-
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=
|
5
|
-
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=
|
2
|
+
hyundai_kia_connect_api/ApiImplType1.py,sha256=X9NMmBsQF0c_JplKDTcZIDbjbkBAxVgRVbrfk1-72bk,32189
|
3
|
+
hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py,sha256=jmIRXaheaV0FLi_F51HLcFTxmjvz7GkGvS5lmAMCCPI,36844
|
4
|
+
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=ScrgOrz5ZgaPycwPWOwDGUPlO3QvADcpHDiX7SUlV0s,39556
|
5
|
+
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=S22I00zKnt-bPpQpuw3EyT8Kv4rWw8Z88rkX_pjLrgk,32377
|
6
6
|
hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=WP-rRI3wZmjuLYZmPXeOSk2NNNc6UhTrpOMuYMG6-iE,47043
|
7
|
-
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=
|
8
|
-
hyundai_kia_connect_api/KiaUvoApiUSA.py,sha256=
|
7
|
+
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=QhchbdcXZuVYHJVcFOUE78C6yK_y0Bwj67sVNPdrLGs,54675
|
8
|
+
hyundai_kia_connect_api/KiaUvoApiUSA.py,sha256=DeA-a2qq78XPYGB8U4vzy2oAcCQJ1xJRN9tlAK_I94o,30404
|
9
9
|
hyundai_kia_connect_api/Token.py,sha256=ZsPvXh1ID7FUTGHAqhZUZyrKT7xVbOtIn6FRJn4Ygf0,370
|
10
10
|
hyundai_kia_connect_api/Vehicle.py,sha256=DPMwJ2fXpV3VxdTdX6JGXfIVX5etyH4r6cnk_Q0AlE8,19039
|
11
11
|
hyundai_kia_connect_api/VehicleManager.py,sha256=nnHsTy49bf5nRhEC9EXFnnfx6M39JSaM2TxKK9vosbY,11733
|
@@ -14,10 +14,10 @@ hyundai_kia_connect_api/bluelink.py,sha256=JiNIHl-Qi8zwqyN6ywKg5CdXOLT74WkvpjVcn
|
|
14
14
|
hyundai_kia_connect_api/const.py,sha256=gFAhj9-YgrJNd7ZjYr4Qu1Yf4v-RhmyON1MJDN0eR90,2281
|
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.35.
|
18
|
-
hyundai_kia_connect_api-3.35.
|
19
|
-
hyundai_kia_connect_api-3.35.
|
20
|
-
hyundai_kia_connect_api-3.35.
|
21
|
-
hyundai_kia_connect_api-3.35.
|
22
|
-
hyundai_kia_connect_api-3.35.
|
23
|
-
hyundai_kia_connect_api-3.35.
|
17
|
+
hyundai_kia_connect_api-3.35.7.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
18
|
+
hyundai_kia_connect_api-3.35.7.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
|
19
|
+
hyundai_kia_connect_api-3.35.7.dist-info/METADATA,sha256=ZVUdVj33RmavdifBJb2Jq8IorWeNhnq2-XHFVodSwOM,7142
|
20
|
+
hyundai_kia_connect_api-3.35.7.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
|
21
|
+
hyundai_kia_connect_api-3.35.7.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
|
22
|
+
hyundai_kia_connect_api-3.35.7.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
23
|
+
hyundai_kia_connect_api-3.35.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.35.5.dist-info → hyundai_kia_connect_api-3.35.7.dist-info}/top_level.txt
RENAMED
File without changes
|