hyundai-kia-connect-api 3.24.0__tar.gz → 3.24.1__tar.gz
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.
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/CONTRIBUTING.rst +5 -6
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/PKG-INFO +3 -3
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/KiaUvoApiAU.py +14 -7
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api.egg-info/PKG-INFO +3 -3
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/setup.py +3 -3
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/HISTORY.rst +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/LICENSE +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/MANIFEST.in +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/README.rst +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/docs/Makefile +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/docs/authors.rst +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/docs/conf.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/docs/contributing.rst +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/docs/history.rst +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/docs/index.rst +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/docs/installation.rst +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/docs/make.bat +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/docs/readme.rst +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/docs/usage.rst +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/ApiImpl.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/ApiImplType1.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/KiaUvoAPIUSA.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/KiaUvoApiCA.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/KiaUvoApiCN.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/KiaUvoApiEU.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/Token.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/Vehicle.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/VehicleManager.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/__init__.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/const.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/exceptions.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/utils.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api.egg-info/SOURCES.txt +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api.egg-info/dependency_links.txt +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api.egg-info/not-zip-safe +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api.egg-info/requires.txt +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api.egg-info/top_level.txt +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/requirements.txt +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/setup.cfg +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/tests/__init__.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/tests/au_login_test.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/tests/ca_login_test.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/tests/eu_check_response_for_errors_test.py +0 -0
- {hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/tests/eu_login_test.py +0 -0
@@ -76,14 +76,14 @@ Ready to contribute? Here's how to set up `hyundai_kia_connect_api` for local de
|
|
76
76
|
|
77
77
|
Now you can make your changes locally.
|
78
78
|
|
79
|
-
5. When you're done making changes, check that your changes pass flake8
|
80
|
-
tests
|
79
|
+
5. When you're done making changes, check that your changes pass flake8. Most
|
80
|
+
tests require environment variables to supply the username and password and
|
81
|
+
they will run as part of the PR pre-requisites:
|
81
82
|
|
82
83
|
$ flake8 hyundai_kia_connect_api tests
|
83
84
|
$ python setup.py test or pytest
|
84
|
-
$ tox
|
85
85
|
|
86
|
-
To get flake8
|
86
|
+
To get flake8, pip install them into your virtualenv.
|
87
87
|
|
88
88
|
6. Commit your changes and push your branch to GitHub::
|
89
89
|
|
@@ -102,8 +102,7 @@ Before you submit a pull request, check that it meets these guidelines:
|
|
102
102
|
2. If the pull request adds functionality, the docs should be updated. Put
|
103
103
|
your new functionality into a function with a docstring, and add the
|
104
104
|
feature to the list in README.rst.
|
105
|
-
3. The pull request should work for Python
|
106
|
-
https://travis-ci.com/fuatakgun/hyundai_kia_connect_api/pull_requests
|
105
|
+
3. The pull request should work for recent Python. Check GitHub Actions checks
|
107
106
|
and make sure that the tests pass for all supported Python versions.
|
108
107
|
|
109
108
|
Tips
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.24.
|
3
|
+
Version: 3.24.1
|
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
|
@@ -11,8 +11,8 @@ Classifier: Development Status :: 2 - Pre-Alpha
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
12
12
|
Classifier: License :: OSI Approved :: MIT License
|
13
13
|
Classifier: Natural Language :: English
|
14
|
-
Classifier: Programming Language :: Python :: 3.
|
15
|
-
Requires-Python: >=3.
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
15
|
+
Requires-Python: >=3.10
|
16
16
|
License-File: LICENSE
|
17
17
|
License-File: AUTHORS.rst
|
18
18
|
Requires-Dist: beautifulsoup4>=4.10.0
|
@@ -240,7 +240,10 @@ class KiaUvoApiAU(ApiImplType1):
|
|
240
240
|
},
|
241
241
|
)
|
242
242
|
|
243
|
-
if
|
243
|
+
if (
|
244
|
+
vehicle.engine_type == ENGINE_TYPES.EV
|
245
|
+
or vehicle.engine_type == ENGINE_TYPES.PHEV
|
246
|
+
):
|
244
247
|
try:
|
245
248
|
state = self._get_driving_info(token, vehicle)
|
246
249
|
except Exception as e:
|
@@ -255,8 +258,8 @@ class KiaUvoApiAU(ApiImplType1):
|
|
255
258
|
""",
|
256
259
|
exc_info=e,
|
257
260
|
)
|
258
|
-
|
259
|
-
|
261
|
+
else:
|
262
|
+
self._update_vehicle_drive_info(vehicle, state)
|
260
263
|
|
261
264
|
def force_refresh_vehicle_state(self, token: Token, vehicle: Vehicle) -> None:
|
262
265
|
status = self._get_forced_vehicle_state(token, vehicle)
|
@@ -270,15 +273,19 @@ class KiaUvoApiAU(ApiImplType1):
|
|
270
273
|
)
|
271
274
|
# Only call for driving info on cars we know have a chance of supporting it.
|
272
275
|
# Could be expanded if other types do support it.
|
273
|
-
if
|
276
|
+
if (
|
277
|
+
vehicle.engine_type == ENGINE_TYPES.EV
|
278
|
+
or vehicle.engine_type == ENGINE_TYPES.PHEV
|
279
|
+
):
|
274
280
|
try:
|
275
281
|
state = self._get_driving_info(token, vehicle)
|
276
282
|
except Exception as e:
|
277
|
-
# we don't know if all car types provide this
|
278
|
-
#
|
279
|
-
#
|
283
|
+
# we don't know if all car types (ex: ICE cars) provide this
|
284
|
+
# information. We also don't know what the API returns if
|
285
|
+
# the info is unavailable. So, catch any exception and move on.
|
280
286
|
_LOGGER.exception(
|
281
287
|
"""Failed to parse driving info. Possible reasons:
|
288
|
+
- incompatible vehicle (ICE)
|
282
289
|
- new API format
|
283
290
|
- API outage
|
284
291
|
""",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.24.
|
3
|
+
Version: 3.24.1
|
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
|
@@ -11,8 +11,8 @@ Classifier: Development Status :: 2 - Pre-Alpha
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
12
12
|
Classifier: License :: OSI Approved :: MIT License
|
13
13
|
Classifier: Natural Language :: English
|
14
|
-
Classifier: Programming Language :: Python :: 3.
|
15
|
-
Requires-Python: >=3.
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
15
|
+
Requires-Python: >=3.10
|
16
16
|
License-File: LICENSE
|
17
17
|
License-File: AUTHORS.rst
|
18
18
|
Requires-Dist: beautifulsoup4>=4.10.0
|
@@ -23,13 +23,13 @@ test_requirements = [
|
|
23
23
|
setup(
|
24
24
|
author="Fuat Akgun",
|
25
25
|
author_email="fuatakgun@gmail.com",
|
26
|
-
python_requires=">=3.
|
26
|
+
python_requires=">=3.10",
|
27
27
|
classifiers=[
|
28
28
|
"Development Status :: 2 - Pre-Alpha",
|
29
29
|
"Intended Audience :: Developers",
|
30
30
|
"License :: OSI Approved :: MIT License",
|
31
31
|
"Natural Language :: English",
|
32
|
-
"Programming Language :: Python :: 3.
|
32
|
+
"Programming Language :: Python :: 3.10",
|
33
33
|
],
|
34
34
|
description="Python Boilerplate contains all the boilerplate you need to create a Python package.",
|
35
35
|
install_requires=requirements,
|
@@ -44,6 +44,6 @@ setup(
|
|
44
44
|
test_suite="tests",
|
45
45
|
tests_require=test_requirements,
|
46
46
|
url="https://github.com/fuatakgun/hyundai_kia_connect_api",
|
47
|
-
version="3.24.
|
47
|
+
version="3.24.1",
|
48
48
|
zip_safe=False,
|
49
49
|
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/ApiImpl.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/Token.py
RENAMED
File without changes
|
{hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/Vehicle.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/const.py
RENAMED
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.24.0 → hyundai_kia_connect_api-3.24.1}/hyundai_kia_connect_api/utils.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|