hyundai-kia-connect-api 3.42.0__py2.py3-none-any.whl → 3.42.1__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/KiaUvoApiUSA.py +1 -1
- hyundai_kia_connect_api/utils.py +29 -11
- {hyundai_kia_connect_api-3.42.0.dist-info → hyundai_kia_connect_api-3.42.1.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.42.0.dist-info → hyundai_kia_connect_api-3.42.1.dist-info}/RECORD +9 -9
- {hyundai_kia_connect_api-3.42.0.dist-info → hyundai_kia_connect_api-3.42.1.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.42.0.dist-info → hyundai_kia_connect_api-3.42.1.dist-info}/entry_points.txt +0 -0
- {hyundai_kia_connect_api-3.42.0.dist-info → hyundai_kia_connect_api-3.42.1.dist-info}/licenses/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.42.0.dist-info → hyundai_kia_connect_api-3.42.1.dist-info}/licenses/LICENSE +0 -0
- {hyundai_kia_connect_api-3.42.0.dist-info → hyundai_kia_connect_api-3.42.1.dist-info}/top_level.txt +0 -0
@@ -138,7 +138,7 @@ class KiaUvoApiUSA(ApiImpl):
|
|
138
138
|
"accept-encoding": "gzip, deflate, br",
|
139
139
|
"accept-language": "en-US,en;q=0.9",
|
140
140
|
"apptype": "L",
|
141
|
-
"appversion": "7.
|
141
|
+
"appversion": "7.15.2",
|
142
142
|
"clientid": "MWAMOBILE",
|
143
143
|
"from": "SPA",
|
144
144
|
"host": self.BASE_URL,
|
hyundai_kia_connect_api/utils.py
CHANGED
@@ -56,17 +56,35 @@ def parse_datetime(value, timezone) -> datetime.datetime:
|
|
56
56
|
if value is None:
|
57
57
|
return datetime.datetime(2000, 1, 1, tzinfo=timezone)
|
58
58
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
59
|
+
# Try parsing the new format: Tue, 24 Jun 2025 16:18:10 GMT
|
60
|
+
try:
|
61
|
+
dt_object = datetime.datetime.strptime(value, "%a, %d %b %Y %H:%M:%S GMT")
|
62
|
+
|
63
|
+
if timezone:
|
64
|
+
# First, make it aware of UTC since 'GMT' implies UTC
|
65
|
+
utc_dt = dt_object.replace(tzinfo=datetime.timezone.utc)
|
66
|
+
# Then convert to the target timezone
|
67
|
+
return utc_dt.astimezone(timezone)
|
68
|
+
else:
|
69
|
+
return dt_object
|
70
|
+
except ValueError:
|
71
|
+
# If the new format parsing fails, try the old format
|
72
|
+
value = (
|
73
|
+
value.replace("-", "").replace("T", "").replace(":", "").replace("Z", "")
|
74
|
+
)
|
75
|
+
m = re.match(r"(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})", value)
|
76
|
+
if m:
|
77
|
+
return datetime.datetime(
|
78
|
+
year=int(m.group(1)),
|
79
|
+
month=int(m.group(2)),
|
80
|
+
day=int(m.group(3)),
|
81
|
+
hour=int(m.group(4)),
|
82
|
+
minute=int(m.group(5)),
|
83
|
+
second=int(m.group(6)),
|
84
|
+
tzinfo=timezone,
|
85
|
+
)
|
86
|
+
else:
|
87
|
+
raise ValueError(f"Unable to parse datetime value: {value}")
|
70
88
|
|
71
89
|
|
72
90
|
def get_safe_local_datetime(date: datetime) -> datetime:
|
{hyundai_kia_connect_api-3.42.0.dist-info → hyundai_kia_connect_api-3.42.1.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.42.
|
3
|
+
Version: 3.42.1
|
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.42.0.dist-info → hyundai_kia_connect_api-3.42.1.dist-info}/RECORD
RENAMED
@@ -6,7 +6,7 @@ hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=OvnyBdwkj9fFYGp2dqNSXVO8W6b7bhPcEg
|
|
6
6
|
hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=WP-rRI3wZmjuLYZmPXeOSk2NNNc6UhTrpOMuYMG6-iE,47043
|
7
7
|
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=E9-teu7OVjLu-hGT3B8aGBfrKDTwFmei7uLt09LJZtE,50285
|
8
8
|
hyundai_kia_connect_api/KiaUvoApiIN.py,sha256=82DBrXoREUrmYsK165QHg5brSDclLQTdm9OaruQIjss,36960
|
9
|
-
hyundai_kia_connect_api/KiaUvoApiUSA.py,sha256=
|
9
|
+
hyundai_kia_connect_api/KiaUvoApiUSA.py,sha256=XLi63R7OWXh8_VEbK8Kpn75p2XTgjroR3mpnSlsAqqI,31416
|
10
10
|
hyundai_kia_connect_api/Token.py,sha256=ZsPvXh1ID7FUTGHAqhZUZyrKT7xVbOtIn6FRJn4Ygf0,370
|
11
11
|
hyundai_kia_connect_api/Vehicle.py,sha256=Ypls2anSsyIWK_Le3xCBMTJfNYJLqrMghTKIQTWqLTQ,19072
|
12
12
|
hyundai_kia_connect_api/VehicleManager.py,sha256=BbMeM5HU38nimNTN4QsSFuEcsbeUYCcFdC7-MCU52AY,12183
|
@@ -14,11 +14,11 @@ hyundai_kia_connect_api/__init__.py,sha256=IkyVeIMbcFJZgLaiiNnUVA1Ferxvrm1bXHKVg
|
|
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
16
|
hyundai_kia_connect_api/exceptions.py,sha256=0dwKEPXN8KQVTeueDj2fL3E-TQMU7LjTEJbhcq8Mjx8,1467
|
17
|
-
hyundai_kia_connect_api/utils.py,sha256=
|
18
|
-
hyundai_kia_connect_api-3.42.
|
19
|
-
hyundai_kia_connect_api-3.42.
|
20
|
-
hyundai_kia_connect_api-3.42.
|
21
|
-
hyundai_kia_connect_api-3.42.
|
22
|
-
hyundai_kia_connect_api-3.42.
|
23
|
-
hyundai_kia_connect_api-3.42.
|
24
|
-
hyundai_kia_connect_api-3.42.
|
17
|
+
hyundai_kia_connect_api/utils.py,sha256=k-zSgLdMMLu_h4GJNDRtjbfgZyla_Qhd13pDrtUAu4M,2700
|
18
|
+
hyundai_kia_connect_api-3.42.1.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
19
|
+
hyundai_kia_connect_api-3.42.1.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
|
20
|
+
hyundai_kia_connect_api-3.42.1.dist-info/METADATA,sha256=Fx0rkpwSdd0dCX5eyefad_DPB2FfXkKt9WMfS8ikpWU,7193
|
21
|
+
hyundai_kia_connect_api-3.42.1.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
|
22
|
+
hyundai_kia_connect_api-3.42.1.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
|
23
|
+
hyundai_kia_connect_api-3.42.1.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
24
|
+
hyundai_kia_connect_api-3.42.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.42.0.dist-info → hyundai_kia_connect_api-3.42.1.dist-info}/top_level.txt
RENAMED
File without changes
|