python-homewizard-energy 6.2.0__tar.gz → 6.3.0__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.
- {python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/PKG-INFO +3 -1
- {python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/homewizard_energy.py +2 -0
- {python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/pyproject.toml +3 -1
- {python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/LICENSE +0 -0
- {python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/README.md +0 -0
- {python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/__init__.py +0 -0
- {python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/brand.py +0 -0
- {python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/const.py +0 -0
- {python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/errors.py +0 -0
- {python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/models.py +0 -0
- {python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-homewizard-energy
|
|
3
|
-
Version: 6.
|
|
3
|
+
Version: 6.3.0
|
|
4
4
|
Summary: Asynchronous Python client for the HomeWizard Energy
|
|
5
5
|
Home-page: https://github.com/homewizard/python-homewizard-energy
|
|
6
6
|
License: Apache-2.0
|
|
@@ -15,6 +15,8 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
16
|
Requires-Dist: aiohttp (>=3.0.0)
|
|
17
17
|
Requires-Dist: async-timeout (>=4.0.3,<5.0.0)
|
|
18
|
+
Requires-Dist: backoff (>=2.2.1,<3.0.0)
|
|
19
|
+
Requires-Dist: multidict (>=6.0.5,<7.0.0)
|
|
18
20
|
Project-URL: Bug Tracker, https://github.com/homewizard/python-homewizard-energy/issues
|
|
19
21
|
Project-URL: Changelog, https://github.com/homewizard/python-homewizard-energy/releases
|
|
20
22
|
Project-URL: Documentation, https://github.com/homewizard/python-homewizard-energy
|
|
@@ -9,6 +9,7 @@ from http import HTTPStatus
|
|
|
9
9
|
from typing import Any, TypeVar
|
|
10
10
|
|
|
11
11
|
import async_timeout
|
|
12
|
+
import backoff
|
|
12
13
|
from aiohttp.client import ClientError, ClientResponseError, ClientSession
|
|
13
14
|
from aiohttp.hdrs import METH_GET, METH_PUT
|
|
14
15
|
|
|
@@ -145,6 +146,7 @@ class HomeWizardEnergy:
|
|
|
145
146
|
await self.request("api/v1/identify", method=METH_PUT)
|
|
146
147
|
return True
|
|
147
148
|
|
|
149
|
+
@backoff.on_exception(backoff.expo, RequestError, max_tries=5, logger=None)
|
|
148
150
|
async def request(
|
|
149
151
|
self, path: str, method: str = METH_GET, data: object = None
|
|
150
152
|
) -> Any:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "python-homewizard-energy"
|
|
3
|
-
version = "6.
|
|
3
|
+
version = "6.3.0"
|
|
4
4
|
description = "Asynchronous Python client for the HomeWizard Energy"
|
|
5
5
|
authors = ["DCSBL"]
|
|
6
6
|
maintainers = ["DCSBL"]
|
|
@@ -19,6 +19,8 @@ packages = [
|
|
|
19
19
|
python = "^3.9"
|
|
20
20
|
aiohttp = ">=3.0.0"
|
|
21
21
|
async-timeout = "^4.0.3"
|
|
22
|
+
multidict = "^6.0.5" ## To fix aiohttp dependency at python 3.12
|
|
23
|
+
backoff = "^2.2.1"
|
|
22
24
|
|
|
23
25
|
[tool.poetry.dev-dependencies]
|
|
24
26
|
aresponses = "^3.0.0"
|
|
File without changes
|
|
File without changes
|
{python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/__init__.py
RENAMED
|
File without changes
|
{python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/brand.py
RENAMED
|
File without changes
|
{python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/const.py
RENAMED
|
File without changes
|
{python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/errors.py
RENAMED
|
File without changes
|
{python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/models.py
RENAMED
|
File without changes
|
{python_homewizard_energy-6.2.0 → python_homewizard_energy-6.3.0}/homewizard_energy/py.typed
RENAMED
|
File without changes
|