hyundai-kia-connect-api 3.13.1__py2.py3-none-any.whl → 3.13.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/KiaUvoApiEU.py +24 -8
- {hyundai_kia_connect_api-3.13.1.dist-info → hyundai_kia_connect_api-3.13.2.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.13.1.dist-info → hyundai_kia_connect_api-3.13.2.dist-info}/RECORD +7 -7
- {hyundai_kia_connect_api-3.13.1.dist-info → hyundai_kia_connect_api-3.13.2.dist-info}/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.13.1.dist-info → hyundai_kia_connect_api-3.13.2.dist-info}/LICENSE +0 -0
- {hyundai_kia_connect_api-3.13.1.dist-info → hyundai_kia_connect_api-3.13.2.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.13.1.dist-info → hyundai_kia_connect_api-3.13.2.dist-info}/top_level.txt +0 -0
@@ -123,9 +123,10 @@ class KiaUvoApiEU(ApiImpl):
|
|
123
123
|
|
124
124
|
def __init__(self, region: int, brand: int, language: str) -> None:
|
125
125
|
self.ccu_ccs2_protocol_support = None
|
126
|
-
|
127
|
-
|
128
|
-
|
126
|
+
language = language.lower()
|
127
|
+
# Strip language variants (e.g. en-Gb)
|
128
|
+
if len(language) > 2:
|
129
|
+
language = language[0:2]
|
129
130
|
if language not in SUPPORTED_LANGUAGES_LIST:
|
130
131
|
_LOGGER.warning(f"Unsupported language: {language}, fallback to en")
|
131
132
|
language = "en" # fallback to English
|
@@ -435,10 +436,10 @@ class KiaUvoApiEU(ApiImpl):
|
|
435
436
|
|
436
437
|
# TODO: should the windows and trunc also be checked?
|
437
438
|
if (
|
438
|
-
vehicle.front_left_door_is_open
|
439
|
-
and vehicle.front_right_door_is_open
|
440
|
-
and vehicle.back_left_door_is_open
|
441
|
-
and vehicle.back_right_door_is_open
|
439
|
+
not vehicle.front_left_door_is_open
|
440
|
+
and not vehicle.front_right_door_is_open
|
441
|
+
and not vehicle.back_left_door_is_open
|
442
|
+
and not vehicle.back_right_door_is_open
|
442
443
|
):
|
443
444
|
vehicle.is_locked = True
|
444
445
|
else:
|
@@ -602,10 +603,25 @@ class KiaUvoApiEU(ApiImpl):
|
|
602
603
|
# TODO: )
|
603
604
|
|
604
605
|
if get_child_value(state, "Location.GeoCoord.Latitude"):
|
606
|
+
location_last_updated_at = dt.datetime(
|
607
|
+
2000, 1, 1, tzinfo=self.data_timezone
|
608
|
+
)
|
609
|
+
timestamp = get_child_value(state, "Location.TimeStamp")
|
610
|
+
if timestamp is not None:
|
611
|
+
location_last_updated_at = dt.datetime(
|
612
|
+
year=int(get_child_value(timestamp, "Year")),
|
613
|
+
month=int(get_child_value(timestamp, "Mon")),
|
614
|
+
day=int(get_child_value(timestamp, "Day")),
|
615
|
+
hour=int(get_child_value(timestamp, "Hour")),
|
616
|
+
minute=int(get_child_value(timestamp, "Min")),
|
617
|
+
second=int(get_child_value(timestamp, "Sec")),
|
618
|
+
tzinfo=self.data_timezone,
|
619
|
+
)
|
620
|
+
|
605
621
|
vehicle.location = (
|
606
622
|
get_child_value(state, "Location.GeoCoord.Latitude"),
|
607
623
|
get_child_value(state, "Location.GeoCoord.Longitude"),
|
608
|
-
|
624
|
+
location_last_updated_at,
|
609
625
|
)
|
610
626
|
|
611
627
|
vehicle.data = state
|
{hyundai_kia_connect_api-3.13.1.dist-info → hyundai_kia_connect_api-3.13.2.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.13.
|
3
|
+
Version: 3.13.2
|
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
|
{hyundai_kia_connect_api-3.13.1.dist-info → hyundai_kia_connect_api-3.13.2.dist-info}/RECORD
RENAMED
@@ -4,7 +4,7 @@ hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=j51XQQhz9I5YUGG63N5vQrwleatr783sd
|
|
4
4
|
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=1IHt0q0Yajw5vqPSe-RU7YCeoClJ3NeK2gBc_Fy04wc,48322
|
5
5
|
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=d1gctIMUsecFjsAZyOuhHm-iC6t0bK8o2_QF73D4Yz8,30357
|
6
6
|
hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=FLuH8nxNrRKecuPNRWrmuoVtjQas0iroyZSkyKM7Egc,47303
|
7
|
-
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=
|
7
|
+
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=1t_iNHEnsepaqwJITEZQd4KbfyMy5ZmcQ7REa3e5UCg,67023
|
8
8
|
hyundai_kia_connect_api/Token.py,sha256=odHSR-D7CnL19hh6f6cc3rablchzqS0I2GXf7jWvsQE,369
|
9
9
|
hyundai_kia_connect_api/Vehicle.py,sha256=JXAUSJ3ue2ii3PWqAzzsVSNjyiFMhkln4XM9hiSYBm0,13051
|
10
10
|
hyundai_kia_connect_api/VehicleManager.py,sha256=YnqfUmbpqN9x8R35KcE4W2E-YBeL_tFpAV3MdeF5L_A,9653
|
@@ -12,9 +12,9 @@ hyundai_kia_connect_api/__init__.py,sha256=o0k2XVze9HxuN5Q919pcgLKaIXSXhHGnG2smq
|
|
12
12
|
hyundai_kia_connect_api/const.py,sha256=s1bbXl-cG5s98xQr7p_zysQkw1t_o1sSAPON7LkDFE0,1966
|
13
13
|
hyundai_kia_connect_api/exceptions.py,sha256=hj16ND9l6bKy4I6VgKO2CMLTIBs8s7tQbMLeiiQ8imM,1342
|
14
14
|
hyundai_kia_connect_api/utils.py,sha256=rfhERPXkzqelsaieLtiAyN9xDDTheNyKX5aBPRLrHf4,1117
|
15
|
-
hyundai_kia_connect_api-3.13.
|
16
|
-
hyundai_kia_connect_api-3.13.
|
17
|
-
hyundai_kia_connect_api-3.13.
|
18
|
-
hyundai_kia_connect_api-3.13.
|
19
|
-
hyundai_kia_connect_api-3.13.
|
20
|
-
hyundai_kia_connect_api-3.13.
|
15
|
+
hyundai_kia_connect_api-3.13.2.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
16
|
+
hyundai_kia_connect_api-3.13.2.dist-info/LICENSE,sha256=AsZwIRViAze7ObwO6V6IB0q4caXv6DJS2-3dsU1FWy8,1069
|
17
|
+
hyundai_kia_connect_api-3.13.2.dist-info/METADATA,sha256=kULD7qfWcmpqhKv9NPd33SBxTRUxZF0OXfsyR1mHzFg,5775
|
18
|
+
hyundai_kia_connect_api-3.13.2.dist-info/WHEEL,sha256=-G_t0oGuE7UD0DrSpVZnq1hHMBV9DD2XkS5v7XpmTnk,110
|
19
|
+
hyundai_kia_connect_api-3.13.2.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
20
|
+
hyundai_kia_connect_api-3.13.2.dist-info/RECORD,,
|
{hyundai_kia_connect_api-3.13.1.dist-info → hyundai_kia_connect_api-3.13.2.dist-info}/AUTHORS.rst
RENAMED
File without changes
|
{hyundai_kia_connect_api-3.13.1.dist-info → hyundai_kia_connect_api-3.13.2.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.13.1.dist-info → hyundai_kia_connect_api-3.13.2.dist-info}/top_level.txt
RENAMED
File without changes
|