hyundai-kia-connect-api 3.41.4__py2.py3-none-any.whl → 3.42.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.
@@ -363,43 +363,44 @@ class KiaUvoApiCA(ApiImpl):
363
363
  vehicle.back_right_window_is_open = get_child_value(
364
364
  state, "status.windowOpen.backRight"
365
365
  )
366
- vehicle.ev_battery_percentage = get_child_value(
367
- state, "status.evStatus.batteryStatus"
368
- )
369
- vehicle.ev_battery_is_charging = get_child_value(
370
- state, "status.evStatus.batteryCharge"
371
- )
372
- vehicle.ev_battery_is_plugged_in = get_child_value(
373
- state, "status.evStatus.batteryPlugin"
374
- )
375
- vehicle.ev_driving_range = (
376
- get_child_value(
377
- state,
378
- "status.evStatus.drvDistance.0.rangeByFuel.evModeRange.value",
379
- ),
380
- 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 = (
381
377
  get_child_value(
382
378
  state,
383
- "status.evStatus.drvDistance.0.rangeByFuel.evModeRange.unit",
384
- )
385
- ],
386
- )
387
- vehicle.ev_estimated_current_charge_duration = (
388
- get_child_value(state, "status.evStatus.remainTime2.atc.value"),
389
- "m",
390
- )
391
- vehicle.ev_estimated_fast_charge_duration = (
392
- get_child_value(state, "status.evStatus.remainTime2.etc1.value"),
393
- "m",
394
- )
395
- vehicle.ev_estimated_portable_charge_duration = (
396
- get_child_value(state, "status.evStatus.remainTime2.etc2.value"),
397
- "m",
398
- )
399
- vehicle.ev_estimated_station_charge_duration = (
400
- get_child_value(state, "status.evStatus.remainTime2.etc3.value"),
401
- "m",
402
- )
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
+ )
403
404
  vehicle.fuel_driving_range = (
404
405
  get_child_value(
405
406
  state,
@@ -97,10 +97,19 @@ class KiaUvoApiIN(ApiImplType1):
97
97
  self.BASIC_AUTHORIZATION: str = "Basic ZTViM2Y2ZDAtN2Y4My00M2M5LWFmZjMtYTI1NGRiN2FmMzY4OjVKRk9DcjZDMjRPZk96bERxWnA3RXdxcmtMMFd3MDRVYXhjRGlFNlVkM3FJNVNFNA==" # noqa
98
98
  self.LOGIN_FORM_HOST = "prd.in-ccapi.hyundai.connected-car.io"
99
99
  self.PUSH_TYPE = "GCM"
100
- self.GCM_SENDER_ID = 974204007939
101
100
  elif BRANDS[brand] == BRAND_KIA:
102
- raise NotImplementedError()
101
+ self.BASE_DOMAIN: str = "prd.in-ccapi.kia.connected-car.io"
102
+ self.PORT: int = 8080
103
+ self.CCSP_SERVICE_ID: str = "d0fe4855-7527-4be0-ab6e-a481216c705d"
104
+ self.APP_ID: str = "00000000-69cd-4660-b75d-277ae15379dd"
105
+ self.CFB: str = base64.b64decode(
106
+ "pdfn/jCrrEcxH6Jnak/1O/DaD+HjVh0P6z/BHWNoUKQtT0aLcYwer8BxQOoiHXSyMtBV"
107
+ )
108
+ self.BASIC_AUTHORIZATION: str = "Basic ZDBmZTQ4NTUtNzUyNy00YmUwLWFiNmUtYTQ4MTIxNmM3MDVkOlNIb1R0WHB5ZmJZbVAzWGpOQTZCcnRsRGdseXBQV2o5MjBQdEtCSlBmbGVIRVlwVQ==" # noqa
109
+ self.LOGIN_FORM_HOST = "prd.in-ccapi.kia.connected-car.io"
110
+ self.PUSH_TYPE = "APNS"
103
111
 
112
+ self.GCM_SENDER_ID = 974204007939
104
113
  self.BASE_URL: str = self.BASE_DOMAIN + ":" + str(self.PORT)
105
114
  self.USER_API_URL: str = "https://" + self.BASE_URL + "/api/v1/user/"
106
115
  self.SPA_API_URL: str = "https://" + self.BASE_URL + "/api/v1/spa/"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyundai_kia_connect_api
3
- Version: 3.41.4
3
+ Version: 3.42.0
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,10 +2,10 @@ 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=eAooUV_LpdP49-3lB1EOOcv9WuoELuYUkjD8KeQ77Ks,34384
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
- hyundai_kia_connect_api/KiaUvoApiIN.py,sha256=q17gaDhp38wJwn1ceTou1QcDiuDW2wGGjOFTMDRROl8,36318
8
+ hyundai_kia_connect_api/KiaUvoApiIN.py,sha256=82DBrXoREUrmYsK165QHg5brSDclLQTdm9OaruQIjss,36960
9
9
  hyundai_kia_connect_api/KiaUvoApiUSA.py,sha256=vwY5wsy68phV_eRTlwI1Q_fL2XY9y4aKxawwWwU_94c,31416
10
10
  hyundai_kia_connect_api/Token.py,sha256=ZsPvXh1ID7FUTGHAqhZUZyrKT7xVbOtIn6FRJn4Ygf0,370
11
11
  hyundai_kia_connect_api/Vehicle.py,sha256=Ypls2anSsyIWK_Le3xCBMTJfNYJLqrMghTKIQTWqLTQ,19072
@@ -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.4.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
19
- hyundai_kia_connect_api-3.41.4.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
20
- hyundai_kia_connect_api-3.41.4.dist-info/METADATA,sha256=_F5dUcPGvY87EXEg06UOBIjaScaDaQzqbnOn58fNv9M,7193
21
- hyundai_kia_connect_api-3.41.4.dist-info/WHEEL,sha256=joeZ_q2kZqPjVkNy_YbjGrynLS6bxmBj74YkvIORXVI,109
22
- hyundai_kia_connect_api-3.41.4.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
23
- hyundai_kia_connect_api-3.41.4.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
24
- hyundai_kia_connect_api-3.41.4.dist-info/RECORD,,
18
+ hyundai_kia_connect_api-3.42.0.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
19
+ hyundai_kia_connect_api-3.42.0.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
20
+ hyundai_kia_connect_api-3.42.0.dist-info/METADATA,sha256=Qr3wBKzd2MmahSxiZ-IG6xhxm87ImN4y7TTSCY8u990,7193
21
+ hyundai_kia_connect_api-3.42.0.dist-info/WHEEL,sha256=JNWh1Fm1UdwIQV075glCn4MVuCRs0sotJIq-J6rbxCU,109
22
+ hyundai_kia_connect_api-3.42.0.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
23
+ hyundai_kia_connect_api-3.42.0.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
24
+ hyundai_kia_connect_api-3.42.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.4.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any