hyundai-kia-connect-api 3.23.8__py2.py3-none-any.whl → 3.23.9__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.

Potentially problematic release.


This version of hyundai-kia-connect-api might be problematic. Click here for more details.

@@ -124,8 +124,14 @@ class KiaUvoAPIUSA(ApiImpl):
124
124
 
125
125
  self.BASE_URL: str = "api.owners.kia.com"
126
126
  self.API_URL: str = "https://" + self.BASE_URL + "/apigw/v1/"
127
- self.session = requests.Session()
128
- self.session.mount("https://", KiaSSLAdapter())
127
+ self._session = None
128
+
129
+ @property
130
+ def session(self):
131
+ if not self._session:
132
+ self._session = requests.Session()
133
+ self._session.mount("https://", KiaSSLAdapter())
134
+ return self._session
129
135
 
130
136
  def api_headers(self) -> dict:
131
137
  offset = time.localtime().tm_gmtoff / 60 / 60
@@ -653,8 +659,9 @@ class KiaUvoAPIUSA(ApiImpl):
653
659
  },
654
660
  }
655
661
 
656
- # Kia seems to now be checking if you can set the heated/vented seats at the car level
657
- # only add to body if the option is not none for any of the seats
662
+ # Kia seems to now be checking if you can set the heated/vented seats at
663
+ # the car level only add to body if the option is not none for any of
664
+ # the seats
658
665
  if (
659
666
  options.front_left_seat is not None
660
667
  or options.front_right_seat is not None
@@ -95,8 +95,14 @@ class KiaUvoApiCA(ApiImpl):
95
95
  "sec-fetch-mode": "cors",
96
96
  "sec-fetch-site": "same-origin",
97
97
  }
98
- self.sessions = requests.Session()
99
- self.sessions.mount("https://" + self.BASE_URL, cipherAdapter())
98
+ self._sessions = None
99
+
100
+ @property
101
+ def sessions(self):
102
+ if not self._sessions:
103
+ self._sessions = requests.Session()
104
+ self._sessions.mount("https://" + self.BASE_URL, cipherAdapter())
105
+ return self._sessions
100
106
 
101
107
  def _check_response_for_errors(self, response: dict) -> None:
102
108
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: hyundai_kia_connect_api
3
- Version: 3.23.8
3
+ Version: 3.23.9
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,9 +1,9 @@
1
1
  hyundai_kia_connect_api/ApiImpl.py,sha256=7tB6PZTEVlw-GCfEjU4ekq_ZgnFseYLrEYpbUyEoL84,6866
2
2
  hyundai_kia_connect_api/ApiImplType1.py,sha256=PnKwpbCoYGOXBWzBLIlDSrC6daIYeW9qlfW7TM4HCU0,12184
3
3
  hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=xHUpj-1bzHQL4w82kRAt9FMB8ze_DoqZinK6djCyeKY,35619
4
- hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=Cvkjat13g4AmETUxjpLkwCnB9i0Unck2jKExOCsPjcw,31146
4
+ hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=FmRc7bAmsOz9jBtWSAb8lD0ybRMN0OgfEPZZJbPhMUw,31292
5
5
  hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=Mzw0Ov5la4mQvWOXWYpvAfrM6l2BSBEusaPFsL3kn2I,48127
6
- hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=DXXjtS2Dpb7zy6BmhhMLpfxwXwx7ulBEjFRA__bxXhI,30623
6
+ hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=B3Lks_ONr3l01QLl-GQBPdktXj9PZWKuQKRLYmJ7kP4,30763
7
7
  hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=cwIPZ0dU6HolKdooUQeQKlLAic6YU8dQmNs0VQDBgpQ,47035
8
8
  hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=_wNkctkIO2hrf1K2LTZPtHWZ5ewTcXqTv0s_AXRXI2I,68254
9
9
  hyundai_kia_connect_api/Token.py,sha256=ZsPvXh1ID7FUTGHAqhZUZyrKT7xVbOtIn6FRJn4Ygf0,370
@@ -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=J0aXUX-nKIoS3XbelatNh-DZlHRU2_DYz_Mg_ZUKQJU,1957
16
- hyundai_kia_connect_api-3.23.8.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
17
- hyundai_kia_connect_api-3.23.8.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
18
- hyundai_kia_connect_api-3.23.8.dist-info/METADATA,sha256=mhuM__ujhUV2Or4owDeYX9PEMbUOc39HyzDmtiCqeuw,6069
19
- hyundai_kia_connect_api-3.23.8.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
20
- hyundai_kia_connect_api-3.23.8.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
21
- hyundai_kia_connect_api-3.23.8.dist-info/RECORD,,
16
+ hyundai_kia_connect_api-3.23.9.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
17
+ hyundai_kia_connect_api-3.23.9.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
18
+ hyundai_kia_connect_api-3.23.9.dist-info/METADATA,sha256=dQ9GtrY9CmOw7ZWC4if9xqiC999SXSIelfkneBy7T0A,6069
19
+ hyundai_kia_connect_api-3.23.9.dist-info/WHEEL,sha256=TJ49d73sNs10F0aze1W_bTW2P_X7-F4YXOlBqoqA-jY,109
20
+ hyundai_kia_connect_api-3.23.9.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
21
+ hyundai_kia_connect_api-3.23.9.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.1.0)
2
+ Generator: setuptools (75.2.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any