hyundai-kia-connect-api 3.41.3__py2.py3-none-any.whl → 3.41.5__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.
@@ -62,8 +62,8 @@ class KiaUvoApiCA(ApiImpl):
62
62
  self.API_URL: str = "https://" + self.BASE_URL + "/tods/api/"
63
63
  self.API_HEADERS = {
64
64
  "content-type": "application/json",
65
- "accept": "application/json, text/plain, */*",
66
- "accept-encoding": "gzip, deflate, br",
65
+ "accept": "application/json",
66
+ "accept-encoding": "gzip",
67
67
  "accept-language": "en-US,en;q=0.9",
68
68
  "host": self.BASE_URL,
69
69
  "client_id": "HATAHSPACA0232141ED9722C67715A0B",
@@ -80,7 +80,9 @@ class KiaUvoApiCA(ApiImpl):
80
80
  @property
81
81
  def sessions(self):
82
82
  if not self._sessions:
83
- self._sessions = cloudscraper.create_scraper()
83
+ self._sessions = cloudscraper.create_scraper(
84
+ browser={"custom": "okhttp/4.12.0"}
85
+ )
84
86
  return self._sessions
85
87
 
86
88
  def _check_response_for_errors(self, response: dict) -> None:
@@ -361,43 +363,44 @@ class KiaUvoApiCA(ApiImpl):
361
363
  vehicle.back_right_window_is_open = get_child_value(
362
364
  state, "status.windowOpen.backRight"
363
365
  )
364
- vehicle.ev_battery_percentage = get_child_value(
365
- state, "status.evStatus.batteryStatus"
366
- )
367
- vehicle.ev_battery_is_charging = get_child_value(
368
- state, "status.evStatus.batteryCharge"
369
- )
370
- vehicle.ev_battery_is_plugged_in = get_child_value(
371
- state, "status.evStatus.batteryPlugin"
372
- )
373
- vehicle.ev_driving_range = (
374
- get_child_value(
375
- state,
376
- "status.evStatus.drvDistance.0.rangeByFuel.evModeRange.value",
377
- ),
378
- DISTANCE_UNITS[
366
+ if vehicle.engine_type != ENGINE_TYPES.ICE:
367
+ vehicle.ev_battery_percentage = get_child_value(
368
+ state, "status.evStatus.batteryStatus"
369
+ )
370
+ vehicle.ev_battery_is_charging = get_child_value(
371
+ state, "status.evStatus.batteryCharge"
372
+ )
373
+ vehicle.ev_battery_is_plugged_in = get_child_value(
374
+ state, "status.evStatus.batteryPlugin"
375
+ )
376
+ vehicle.ev_driving_range = (
379
377
  get_child_value(
380
378
  state,
381
- "status.evStatus.drvDistance.0.rangeByFuel.evModeRange.unit",
382
- )
383
- ],
384
- )
385
- vehicle.ev_estimated_current_charge_duration = (
386
- get_child_value(state, "status.evStatus.remainTime2.atc.value"),
387
- "m",
388
- )
389
- vehicle.ev_estimated_fast_charge_duration = (
390
- get_child_value(state, "status.evStatus.remainTime2.etc1.value"),
391
- "m",
392
- )
393
- vehicle.ev_estimated_portable_charge_duration = (
394
- get_child_value(state, "status.evStatus.remainTime2.etc2.value"),
395
- "m",
396
- )
397
- vehicle.ev_estimated_station_charge_duration = (
398
- get_child_value(state, "status.evStatus.remainTime2.etc3.value"),
399
- "m",
400
- )
379
+ "status.evStatus.drvDistance.0.rangeByFuel.evModeRange.value",
380
+ ),
381
+ DISTANCE_UNITS[
382
+ get_child_value(
383
+ state,
384
+ "status.evStatus.drvDistance.0.rangeByFuel.evModeRange.unit",
385
+ )
386
+ ],
387
+ )
388
+ vehicle.ev_estimated_current_charge_duration = (
389
+ get_child_value(state, "status.evStatus.remainTime2.atc.value"),
390
+ "m",
391
+ )
392
+ vehicle.ev_estimated_fast_charge_duration = (
393
+ get_child_value(state, "status.evStatus.remainTime2.etc1.value"),
394
+ "m",
395
+ )
396
+ vehicle.ev_estimated_portable_charge_duration = (
397
+ get_child_value(state, "status.evStatus.remainTime2.etc2.value"),
398
+ "m",
399
+ )
400
+ vehicle.ev_estimated_station_charge_duration = (
401
+ get_child_value(state, "status.evStatus.remainTime2.etc3.value"),
402
+ "m",
403
+ )
401
404
  vehicle.fuel_driving_range = (
402
405
  get_child_value(
403
406
  state,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyundai_kia_connect_api
3
- Version: 3.41.3
3
+ Version: 3.41.5
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
@@ -2,7 +2,7 @@ hyundai_kia_connect_api/ApiImpl.py,sha256=UeG2FH4KCdU5LvGp5Ks793vrWbwBx8MN_DedbV
2
2
  hyundai_kia_connect_api/ApiImplType1.py,sha256=8o0Sx0uYOaVyOR6boL2-rWHeu5o4j_n8ZHhEnP8Y2sc,38606
3
3
  hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py,sha256=dg4r6cI38bFuX-vcI76N0kByKVUNZUlSZ8Jp_68xnAM,37079
4
4
  hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=433Db-rp3drhyY8ZvN-GiVP85pl90Wwu4A2uAdkYH1c,36100
5
- hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=x-9LVmsHA0v_9m5AXqQh7q21BX9bce_UodKs7GNVR18,34349
5
+ hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=OvnyBdwkj9fFYGp2dqNSXVO8W6b7bhPcEg7zbKOSzF0,34584
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=q17gaDhp38wJwn1ceTou1QcDiuDW2wGGjOFTMDRROl8,36318
@@ -15,10 +15,10 @@ hyundai_kia_connect_api/bluelink.py,sha256=JiNIHl-Qi8zwqyN6ywKg5CdXOLT74WkvpjVcn
15
15
  hyundai_kia_connect_api/const.py,sha256=ImISRt4QarbN8BOBlDGYRB3F69NKCcGu8ddFvNPhhXU,2370
16
16
  hyundai_kia_connect_api/exceptions.py,sha256=0dwKEPXN8KQVTeueDj2fL3E-TQMU7LjTEJbhcq8Mjx8,1467
17
17
  hyundai_kia_connect_api/utils.py,sha256=J0aXUX-nKIoS3XbelatNh-DZlHRU2_DYz_Mg_ZUKQJU,1957
18
- hyundai_kia_connect_api-3.41.3.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
19
- hyundai_kia_connect_api-3.41.3.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
20
- hyundai_kia_connect_api-3.41.3.dist-info/METADATA,sha256=ESpVJDJy851nrnc748_-7vgKnsCR0Gpfw4wEmgvnXPA,7193
21
- hyundai_kia_connect_api-3.41.3.dist-info/WHEEL,sha256=oSJJyWjO7Z2XSScFQUpXG1HL-N0sFMqqeKVVbZTPkWc,109
22
- hyundai_kia_connect_api-3.41.3.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
23
- hyundai_kia_connect_api-3.41.3.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
24
- hyundai_kia_connect_api-3.41.3.dist-info/RECORD,,
18
+ hyundai_kia_connect_api-3.41.5.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
19
+ hyundai_kia_connect_api-3.41.5.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
20
+ hyundai_kia_connect_api-3.41.5.dist-info/METADATA,sha256=havckGx1jLkutMC1RVYt5hSIYMiZEQen6Ag6KdFQN6I,7193
21
+ hyundai_kia_connect_api-3.41.5.dist-info/WHEEL,sha256=_z0Kb-VmhLeNt2nZ-PsoQBjD25rP0tBwgAyRYD7oTKI,109
22
+ hyundai_kia_connect_api-3.41.5.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
23
+ hyundai_kia_connect_api-3.41.5.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
24
+ hyundai_kia_connect_api-3.41.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.3.1)
2
+ Generator: setuptools (80.7.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any