hyundai-kia-connect-api 3.22.6__py2.py3-none-any.whl → 3.22.8__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.
@@ -7,8 +7,7 @@ import logging
7
7
  from dataclasses import dataclass
8
8
 
9
9
  import requests
10
-
11
-
10
+ from requests.exceptions import JSONDecodeError
12
11
  from .Token import Token
13
12
  from .Vehicle import Vehicle
14
13
  from .const import WINDOW_STATE, CHARGE_PORT_ACTION, OrderStatus, DOMAIN
@@ -119,7 +118,7 @@ class ApiImpl:
119
118
  _LOGGER.debug(f"{DOMAIN} - geocode location raw response: {response}")
120
119
  try:
121
120
  response = response.json()
122
- except requests.RequestsJSONDecodeError:
121
+ except JSONDecodeError:
123
122
  _LOGGER.debug(f"{DOMAIN} - failed to decode json for geocode location")
124
123
  vehicle.geocode = None
125
124
  else:
@@ -402,16 +402,16 @@ class KiaUvoApiEU(ApiImplType1):
402
402
  )
403
403
  else:
404
404
  vehicle.last_updated_at = dt.datetime.now(self.data_timezone)
405
-
406
- vehicle.odometer = (
407
- get_child_value(state, "odometer.value"),
408
- DISTANCE_UNITS[
409
- get_child_value(
410
- state,
411
- "odometer.unit",
412
- )
413
- ],
414
- )
405
+ if get_child_value(state, "odometer.value"):
406
+ vehicle.odometer = (
407
+ get_child_value(state, "odometer.value"),
408
+ DISTANCE_UNITS[
409
+ get_child_value(
410
+ state,
411
+ "odometer.unit",
412
+ )
413
+ ],
414
+ )
415
415
  vehicle.car_battery_percentage = get_child_value(
416
416
  state, "vehicleStatus.battery.batSoc"
417
417
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hyundai_kia_connect_api
3
- Version: 3.22.6
3
+ Version: 3.22.8
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,11 +1,11 @@
1
- hyundai_kia_connect_api/ApiImpl.py,sha256=Q1qnphpShL2_qTlt9mXtZz4jJNKc5sIKaJHY2PxvW6o,6727
1
+ hyundai_kia_connect_api/ApiImpl.py,sha256=WzW0e8AQiCR13sAG5X7v1KfzCbPRCEp4YZTYuBsBQG4,6756
2
2
  hyundai_kia_connect_api/ApiImplType1.py,sha256=-TwcG1wibYmQ96lK_rTl-O1Wh0Kd-Zi5d1tS59uSRwQ,12176
3
3
  hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=cmp99_BaF7XluTrIo8UssV1U_JbvMxzQnu_RJfpv7NQ,28659
4
4
  hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=Cvkjat13g4AmETUxjpLkwCnB9i0Unck2jKExOCsPjcw,31146
5
5
  hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=FeK502Zysgcg3Yx31mjTh4rivFRuGB2sS07TldBzchk,48014
6
6
  hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=F2OI52H2bpX4hDHRrbjWt2Y6iODu7iIEfxFF7W52Jh4,30450
7
7
  hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=cW9YRmt5CPUTB9dHEO7B1ev8SnLjeyzuLN9o50V7JXc,46852
8
- hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=6RGVHoDpegx1wT_SfMNp99HGII-9CUr1ziF_V3mStPs,68755
8
+ hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=s50d-n8ghAgAYG__AbQd0YYsg_cayXXoSJ7bGeD3kug,68843
9
9
  hyundai_kia_connect_api/Token.py,sha256=ZsPvXh1ID7FUTGHAqhZUZyrKT7xVbOtIn6FRJn4Ygf0,370
10
10
  hyundai_kia_connect_api/Vehicle.py,sha256=Gaux63hYW0Lwfr2dtqlXUYbNwranUIiGaAT0Xh0nsFo,16028
11
11
  hyundai_kia_connect_api/VehicleManager.py,sha256=b-umPTBNFn5gmJcXQr7Qi978UVTJQrWhp_r15HdMOuw,10156
@@ -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=WnFAb5iqFIjXAPnA--fxAcqsONcLLgxkU2uJn3xd5Kc,1934
16
- hyundai_kia_connect_api-3.22.6.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
17
- hyundai_kia_connect_api-3.22.6.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
18
- hyundai_kia_connect_api-3.22.6.dist-info/METADATA,sha256=QqqmpV5_9a0p0xXnxjrDrP4Ro3QSIKwuxxzzuVpgDus,6043
19
- hyundai_kia_connect_api-3.22.6.dist-info/WHEEL,sha256=M4n4zmFKzQZk4mLCcycNIzIXO7YPKE_b5Cw4PnhHEg8,109
20
- hyundai_kia_connect_api-3.22.6.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
21
- hyundai_kia_connect_api-3.22.6.dist-info/RECORD,,
16
+ hyundai_kia_connect_api-3.22.8.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
17
+ hyundai_kia_connect_api-3.22.8.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
18
+ hyundai_kia_connect_api-3.22.8.dist-info/METADATA,sha256=ai494cqTJMkDxcORyQr-k1Bf42m7iZsA-TItu48mUgs,6043
19
+ hyundai_kia_connect_api-3.22.8.dist-info/WHEEL,sha256=GUeE9LxUgRABPG7YM0jCNs9cBsAIx0YAkzCB88PMLgc,109
20
+ hyundai_kia_connect_api-3.22.8.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
21
+ hyundai_kia_connect_api-3.22.8.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.2.0)
2
+ Generator: setuptools (73.0.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any