python-homewizard-energy 8.3.1__tar.gz → 8.3.3__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.
Files changed (16) hide show
  1. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/PKG-INFO +2 -2
  2. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/v2/__init__.py +9 -8
  3. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/pyproject.toml +2 -2
  4. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/LICENSE +0 -0
  5. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/README.md +0 -0
  6. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/__init__.py +0 -0
  7. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/const.py +0 -0
  8. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/errors.py +0 -0
  9. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/homewizard_energy.py +0 -0
  10. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/models.py +0 -0
  11. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/py.typed +0 -0
  12. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/utils.py +0 -0
  13. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/v1/__init__.py +0 -0
  14. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/v1/const.py +0 -0
  15. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/v2/cacert.py +0 -0
  16. {python_homewizard_energy-8.3.1 → python_homewizard_energy-8.3.3}/homewizard_energy/v2/const.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-homewizard-energy
3
- Version: 8.3.1
3
+ Version: 8.3.3
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
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.12
13
13
  Classifier: Programming Language :: Python :: 3.13
14
14
  Requires-Dist: aiohttp (>=3.0.0)
15
15
  Requires-Dist: async-timeout (>=4.0.3,<6.0.0)
16
- Requires-Dist: awesomeversion (>=24.6.0,<25.0.0)
16
+ Requires-Dist: awesomeversion (>=24.6.0)
17
17
  Requires-Dist: backoff (>=2.2.1,<3.0.0)
18
18
  Requires-Dist: mashumaro (>=3.15,<4.0)
19
19
  Requires-Dist: multidict (>=6.0.5,<7.0.0)
@@ -241,14 +241,15 @@ class HomeWizardEnergyV2(HomeWizardEnergy):
241
241
 
242
242
  try:
243
243
  async with async_timeout.timeout(self._request_timeout):
244
- resp = await self._session.request(
245
- method,
246
- url,
247
- json=data,
248
- headers=headers,
249
- ssl=self._ssl,
250
- server_hostname=self._identifier,
251
- )
244
+ async with self._lock:
245
+ resp = await self._session.request(
246
+ method,
247
+ url,
248
+ json=data,
249
+ headers=headers,
250
+ ssl=self._ssl,
251
+ server_hostname=self._identifier,
252
+ )
252
253
  LOGGER.debug("%s, %s", resp.status, await resp.text("utf-8"))
253
254
  except asyncio.TimeoutError as exception:
254
255
  raise RequestError(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-homewizard-energy"
3
- version = "8.3.1"
3
+ version = "8.3.3"
4
4
  description = "Asynchronous Python client for the HomeWizard Energy"
5
5
  authors = ["DCSBL"]
6
6
  maintainers = ["DCSBL"]
@@ -23,7 +23,7 @@ multidict = "^6.0.5" ## To fix aiohttp dependency at python 3.12
23
23
  backoff = "^2.2.1"
24
24
  orjson = "^3.10"
25
25
  mashumaro = "^3.15"
26
- awesomeversion = "^24.6.0"
26
+ awesomeversion = ">=24.6.0"
27
27
 
28
28
  [tool.poetry.dev-dependencies]
29
29
  aresponses = "^3.0.0"