hyundai-kia-connect-api 3.33.5__py2.py3-none-any.whl → 3.34.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.
@@ -275,3 +275,12 @@ class ApiImpl:
275
275
  Activate or Deactivate valet mode. Returns the tracking ID
276
276
  """
277
277
  pass
278
+
279
+ def set_vehicle_to_load_discharge_limit(
280
+ self, token: Token, vehicle: Vehicle, limit: int
281
+ ) -> str:
282
+ """
283
+ feature only available for some regions.
284
+ Set the vehicle to load limit. Returns the tracking ID
285
+ """
286
+ pass
@@ -482,6 +482,24 @@ class ApiImplType1(ApiImpl):
482
482
  _check_response_for_errors(response)
483
483
  return response["msgId"]
484
484
 
485
+ def set_vehicle_to_load_discharge_limit(
486
+ self, token: Token, vehicle: Vehicle, limit: int
487
+ ) -> str:
488
+ url = (
489
+ self.SPA_API_URL + "vehicles/" + vehicle.id + "/ccs2/charge/dischargelimit"
490
+ )
491
+
492
+ body = {"dischargingLimit": int(limit)}
493
+ response = requests.post(
494
+ url,
495
+ json=body,
496
+ headers=self._get_authenticated_headers(
497
+ token, vehicle.ccu_ccs2_protocol_support
498
+ ),
499
+ ).json()
500
+ _LOGGER.debug(f"{DOMAIN} - Set v2l limit Response: {response}")
501
+ _check_response_for_errors(response)
502
+
485
503
  def lock_action(
486
504
  self, token: Token, vehicle: Vehicle, action: VEHICLE_LOCK_ACTION
487
505
  ) -> str:
@@ -289,6 +289,11 @@ class VehicleManager:
289
289
  self.token, self.get_vehicle(vehicle_id), VALET_MODE_ACTION.DEACTIVATE
290
290
  )
291
291
 
292
+ def set_vehicle_to_load_discharge_limit(self, vehicle_id: str, limit: int) -> str:
293
+ return self.api.set_vehicle_to_load_discharge_limit(
294
+ self.token, self.get_vehicle(vehicle_id), limit
295
+ )
296
+
292
297
  @staticmethod
293
298
  def get_implementation_by_region_brand(
294
299
  region: int, brand: int, language: str
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hyundai_kia_connect_api
3
- Version: 3.33.5
3
+ Version: 3.34.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
@@ -1,5 +1,5 @@
1
- hyundai_kia_connect_api/ApiImpl.py,sha256=PUZfRVb_I3uC6KaY2HK4TxBFfXyVqaXAgGO1GOAb1Hc,9344
2
- hyundai_kia_connect_api/ApiImplType1.py,sha256=P379_E59c-AeE2xt1XRxvr3ks3B-uSkuzHLtg3Sae8A,18889
1
+ hyundai_kia_connect_api/ApiImpl.py,sha256=smtAOUzjmO3ci2LHoNiEmTe2UR1f0SqmVUQiweZ6je4,9610
2
+ hyundai_kia_connect_api/ApiImplType1.py,sha256=3qettOJ8TRMXmESYcJLJx4dtYYJSIkcOxljsLgjGgy8,19502
3
3
  hyundai_kia_connect_api/HyundaiBlueLinkApiUSA.py,sha256=FGYyrS3dSq8Plfu8DQMwVG1LM3nmRv8Y4vrN7wZ4oVY,36988
4
4
  hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=hsm3PYQho9oT_TpPl7XzgcIPQjqcUL9TBv9R6ftvFiI,44267
5
5
  hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=XBya0yHZ2MC3TBVQLSc6N-SzmGt_s3l4nGVyNgmjl9Q,32514
@@ -8,16 +8,16 @@ hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=4CvmOU7Mj0kJm7eqwSCI6nXsETcigskj36
8
8
  hyundai_kia_connect_api/KiaUvoApiUSA.py,sha256=8DP7iOORHtU98LipcAYEPdtJvubBlUP2-jlDxAhTDhQ,30548
9
9
  hyundai_kia_connect_api/Token.py,sha256=ZsPvXh1ID7FUTGHAqhZUZyrKT7xVbOtIn6FRJn4Ygf0,370
10
10
  hyundai_kia_connect_api/Vehicle.py,sha256=hZT0wU7-mMi85bgqNHMu6CyhQQ5h-Jfmoc1ce2uPhYM,18867
11
- hyundai_kia_connect_api/VehicleManager.py,sha256=k2MZR6nuPPrH1G9cLrukjYyDAar-M39qdNcQtl1ntPI,11512
11
+ hyundai_kia_connect_api/VehicleManager.py,sha256=JQLh9Tq1wIRz_CdrqiQAQBLMv1DTO_yNASIWWqZWksg,11731
12
12
  hyundai_kia_connect_api/__init__.py,sha256=IkyVeIMbcFJZgLaiiNnUVA1Ferxvrm1bXHKVg01cxvc,319
13
13
  hyundai_kia_connect_api/bluelink.py,sha256=JiNIHl-Qi8zwqyN6ywKg5CdXOLT74WkvpjVcn-rYEjI,19730
14
14
  hyundai_kia_connect_api/const.py,sha256=dXEh-lpthH8000nUXFoRZpQXkTxVHDAgDe_KqnSZhZw,2280
15
15
  hyundai_kia_connect_api/exceptions.py,sha256=m7gyDnvA5OVAK4EXSP_ZwE0s0uV8HsGUV0tiYwqofK0,1343
16
16
  hyundai_kia_connect_api/utils.py,sha256=J0aXUX-nKIoS3XbelatNh-DZlHRU2_DYz_Mg_ZUKQJU,1957
17
- hyundai_kia_connect_api-3.33.5.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
18
- hyundai_kia_connect_api-3.33.5.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
19
- hyundai_kia_connect_api-3.33.5.dist-info/METADATA,sha256=lfmiqa4yNlYoWXDCp13c9nFeDhSKAzUHfnxcZGLQHQo,7142
20
- hyundai_kia_connect_api-3.33.5.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
21
- hyundai_kia_connect_api-3.33.5.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
22
- hyundai_kia_connect_api-3.33.5.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
23
- hyundai_kia_connect_api-3.33.5.dist-info/RECORD,,
17
+ hyundai_kia_connect_api-3.34.0.dist-info/licenses/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
18
+ hyundai_kia_connect_api-3.34.0.dist-info/licenses/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
19
+ hyundai_kia_connect_api-3.34.0.dist-info/METADATA,sha256=v8AkcefIFpuzobVsT5KL0W_jWdEn_evVIqZ1_l9SBAc,7142
20
+ hyundai_kia_connect_api-3.34.0.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
21
+ hyundai_kia_connect_api-3.34.0.dist-info/entry_points.txt,sha256=XfrroRdyC_9q9VXjEZe5SdRPhkQyCCE4S7ZK6XSKelA,67
22
+ hyundai_kia_connect_api-3.34.0.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
23
+ hyundai_kia_connect_api-3.34.0.dist-info/RECORD,,