hyundai-kia-connect-api 3.35.1__py2.py3-none-any.whl → 3.35.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 +8 -1
- {hyundai_kia_connect_api-3.35.1.dist-info → hyundai_kia_connect_api-3.35.2.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.35.1.dist-info → hyundai_kia_connect_api-3.35.2.dist-info}/RECORD +8 -8
- {hyundai_kia_connect_api-3.35.1.dist-info → hyundai_kia_connect_api-3.35.2.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.35.1.dist-info → hyundai_kia_connect_api-3.35.2.dist-info}/entry_points.txt +0 -0
- {hyundai_kia_connect_api-3.35.1.dist-info → hyundai_kia_connect_api-3.35.2.dist-info}/licenses/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.35.1.dist-info → hyundai_kia_connect_api-3.35.2.dist-info}/licenses/LICENSE +0 -0
- {hyundai_kia_connect_api-3.35.1.dist-info → hyundai_kia_connect_api-3.35.2.dist-info}/top_level.txt +0 -0
@@ -4,6 +4,8 @@ import datetime as dt
|
|
4
4
|
import requests
|
5
5
|
import logging
|
6
6
|
from typing import Optional
|
7
|
+
from datetime import timedelta, timezone
|
8
|
+
|
7
9
|
|
8
10
|
from time import sleep
|
9
11
|
|
@@ -119,9 +121,14 @@ class ApiImplType1(ApiImpl):
|
|
119
121
|
}
|
120
122
|
|
121
123
|
def _update_vehicle_properties_ccs2(self, vehicle: Vehicle, state: dict) -> None:
|
124
|
+
if get_child_value(state, "Offset"):
|
125
|
+
offset = get_child_value(state, "Offset")
|
126
|
+
hours = int(offset)
|
127
|
+
minutes = int((offset - hours) * 60)
|
128
|
+
vehicle.timezone = timezone(timedelta(hours=hours, minutes=minutes))
|
122
129
|
if get_child_value(state, "Date"):
|
123
130
|
vehicle.last_updated_at = parse_datetime(
|
124
|
-
get_child_value(state, "Date"),
|
131
|
+
get_child_value(state, "Date"), vehicle.timezone
|
125
132
|
)
|
126
133
|
else:
|
127
134
|
vehicle.last_updated_at = dt.datetime.now(self.data_timezone)
|
{hyundai_kia_connect_api-3.35.1.dist-info → hyundai_kia_connect_api-3.35.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.35.
|
3
|
+
Version: 3.35.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.35.1.dist-info → hyundai_kia_connect_api-3.35.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=9feFrVc9WLn0J9IKpflagahUEscVwRaK_SbVTxAZSKw,31779
|
3
3
|
hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py,sha256=FGYyrS3dSq8Plfu8DQMwVG1LM3nmRv8Y4vrN7wZ4oVY,36988
|
4
4
|
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=nGR7jwogKrVuM6C6xLNbSDwltuy0PFR11kpGL9YykhY,39922
|
5
5
|
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=Y2xWIYUuiilk3FXq1ZdHQ0DsFZA_8b6AIT32l595leg,32521
|
@@ -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.2.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
18
|
+
hyundai_kia_connect_api-3.35.2.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
|
19
|
+
hyundai_kia_connect_api-3.35.2.dist-info/METADATA,sha256=UO691RgQuxCdln19Y-M89wf7j0VKPE8ffu2ckb3OCO8,7142
|
20
|
+
hyundai_kia_connect_api-3.35.2.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
|
21
|
+
hyundai_kia_connect_api-3.35.2.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
|
22
|
+
hyundai_kia_connect_api-3.35.2.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
23
|
+
hyundai_kia_connect_api-3.35.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.35.1.dist-info → hyundai_kia_connect_api-3.35.2.dist-info}/top_level.txt
RENAMED
File without changes
|