hyundai-kia-connect-api 3.21.1__py2.py3-none-any.whl → 3.22.0__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.
@@ -377,6 +377,19 @@ class HyundaiBlueLinkAPIUSA(ApiImpl):
377
377
  vehicle.ev_battery_is_plugged_in = get_child_value(
378
378
  state, "vehicleStatus.evStatus.batteryPlugin"
379
379
  )
380
+ ChargeDict = get_child_value(
381
+ state, "vehicleStatus.evStatus.reservChargeInfos.targetSOClist"
382
+ )
383
+ try:
384
+ vehicle.ev_charge_limits_ac = [
385
+ x["targetSOClevel"] for x in ChargeDict if x["plugType"] == 1
386
+ ][-1]
387
+ vehicle.ev_charge_limits_dc = [
388
+ x["targetSOClevel"] for x in ChargeDict if x["plugType"] == 0
389
+ ][-1]
390
+ except Exception:
391
+ _LOGGER.debug(f"{DOMAIN} - SOC Levels couldn't be found. May not be an EV.")
392
+
380
393
  vehicle.ev_driving_range = (
381
394
  get_child_value(
382
395
  state,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hyundai_kia_connect_api
3
- Version: 3.21.1
3
+ Version: 3.22.0
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,6 +1,6 @@
1
1
  hyundai_kia_connect_api/ApiImpl.py,sha256=Lelebhg03S9JrHkxibLSeW73W0x0dFAQbqBvpBvdBXs,6191
2
2
  hyundai_kia_connect_api/ApiImplType1.py,sha256=-TwcG1wibYmQ96lK_rTl-O1Wh0Kd-Zi5d1tS59uSRwQ,12176
3
- hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=fnCL59hZBYOJ25851nDQRcNngFqhH2q3ZRxfXN_4CTo,28126
3
+ hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=cmp99_BaF7XluTrIo8UssV1U_JbvMxzQnu_RJfpv7NQ,28659
4
4
  hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=llCsBbefkfZMzu4Vz4KXk-1FDZfLTPDelAN2kxaC4hA,31115
5
5
  hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=FeK502Zysgcg3Yx31mjTh4rivFRuGB2sS07TldBzchk,48014
6
6
  hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=F2OI52H2bpX4hDHRrbjWt2Y6iODu7iIEfxFF7W52Jh4,30450
@@ -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=54O8Y9Xma0SqeK2c_mqX4AJGJXQWma7POZJizFPPlvo,1711
16
- hyundai_kia_connect_api-3.21.1.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
17
- hyundai_kia_connect_api-3.21.1.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
18
- hyundai_kia_connect_api-3.21.1.dist-info/METADATA,sha256=bEob2hNHE8DdFM3Gv-EruyUMZ7N1gZhC6dZbZ_fx-T4,6045
19
- hyundai_kia_connect_api-3.21.1.dist-info/WHEEL,sha256=_4XEmVmaBFWtekSGrbfOGNjC2I5lUr0lZSRblBllIFA,109
20
- hyundai_kia_connect_api-3.21.1.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
21
- hyundai_kia_connect_api-3.21.1.dist-info/RECORD,,
16
+ hyundai_kia_connect_api-3.22.0.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
17
+ hyundai_kia_connect_api-3.22.0.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
18
+ hyundai_kia_connect_api-3.22.0.dist-info/METADATA,sha256=ZHCb0dgjvLeBZkf0bCFnbe21jnFBOMcyqQDr6wU5coM,6045
19
+ hyundai_kia_connect_api-3.22.0.dist-info/WHEEL,sha256=0XQbNV6JE5ziJsWjIU8TRRv0N6SohNonLWgP86g5fiI,109
20
+ hyundai_kia_connect_api-3.22.0.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
21
+ hyundai_kia_connect_api-3.22.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (70.1.1)
2
+ Generator: setuptools (70.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any