hyundai-kia-connect-api 3.23.2__py2.py3-none-any.whl → 3.23.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.
@@ -49,9 +49,17 @@ class ApiImplType1(ApiImpl):
49
49
  def _update_vehicle_properties_ccs2(self, vehicle: Vehicle, state: dict) -> None:
50
50
  if get_child_value(state, "Date"):
51
51
  # `Date` field is in UTC time
52
- vehicle.last_updated_at = parse_datetime(
52
+ if vehicle.last_updated_at:
53
+ vehicle.last_updated_at = parse_datetime(
54
+ get_child_value(state, "Date"), dt.timezone.utc
55
+ )
56
+ elif vehicle.last_updated_at < parse_datetime(
53
57
  get_child_value(state, "Date"), dt.timezone.utc
54
- )
58
+ ):
59
+ vehicle.last_updated_at = parse_datetime(
60
+ get_child_value(state, "Date"), dt.timezone.utc
61
+ )
62
+
55
63
  else:
56
64
  vehicle.last_updated_at = dt.datetime.now(self.data_timezone)
57
65
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hyundai_kia_connect_api
3
- Version: 3.23.2
3
+ Version: 3.23.3
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
@@ -1,5 +1,5 @@
1
1
  hyundai_kia_connect_api/ApiImpl.py,sha256=7tB6PZTEVlw-GCfEjU4ekq_ZgnFseYLrEYpbUyEoL84,6866
2
- hyundai_kia_connect_api/ApiImplType1.py,sha256=ZvQN_YESiXXCSvcy-fXRAwHQ_r9cc01msrUlUsBs4Zc,12223
2
+ hyundai_kia_connect_api/ApiImplType1.py,sha256=w7K_M9WARpba3XSI0eauNJ0szEflAt-fg_RMViVDu08,12558
3
3
  hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=xHUpj-1bzHQL4w82kRAt9FMB8ze_DoqZinK6djCyeKY,35619
4
4
  hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=Cvkjat13g4AmETUxjpLkwCnB9i0Unck2jKExOCsPjcw,31146
5
5
  hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=Mzw0Ov5la4mQvWOXWYpvAfrM6l2BSBEusaPFsL3kn2I,48127
@@ -13,9 +13,9 @@ hyundai_kia_connect_api/__init__.py,sha256=i2kXYjBEKSvT1e8FoQ7V7oqAyL22w3XzF2rAF
13
13
  hyundai_kia_connect_api/const.py,sha256=ofi_ZfGxJYo0FWIcGFbIMSMRdKRtaK4GUDhFiQRvZeI,2007
14
14
  hyundai_kia_connect_api/exceptions.py,sha256=m7gyDnvA5OVAK4EXSP_ZwE0s0uV8HsGUV0tiYwqofK0,1343
15
15
  hyundai_kia_connect_api/utils.py,sha256=J0aXUX-nKIoS3XbelatNh-DZlHRU2_DYz_Mg_ZUKQJU,1957
16
- hyundai_kia_connect_api-3.23.2.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
17
- hyundai_kia_connect_api-3.23.2.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
18
- hyundai_kia_connect_api-3.23.2.dist-info/METADATA,sha256=U2_-HdqSqM59VBvZCCYrVewp8jlZe427nZWlBjHu3QE,6069
19
- hyundai_kia_connect_api-3.23.2.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
20
- hyundai_kia_connect_api-3.23.2.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
21
- hyundai_kia_connect_api-3.23.2.dist-info/RECORD,,
16
+ hyundai_kia_connect_api-3.23.3.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
17
+ hyundai_kia_connect_api-3.23.3.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
18
+ hyundai_kia_connect_api-3.23.3.dist-info/METADATA,sha256=0_NF-WHuAQWbVaZIcdkkAxk1MB-TMQRyj_eOlVFZOGk,6069
19
+ hyundai_kia_connect_api-3.23.3.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
20
+ hyundai_kia_connect_api-3.23.3.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
21
+ hyundai_kia_connect_api-3.23.3.dist-info/RECORD,,