python-homewizard-energy 8.0.0a4__tar.gz → 8.0.0a5__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 (15) hide show
  1. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/PKG-INFO +2 -2
  2. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/homewizard_energy/__init__.py +4 -4
  3. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/pyproject.toml +2 -2
  4. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/LICENSE +0 -0
  5. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/README.md +0 -0
  6. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/homewizard_energy/const.py +0 -0
  7. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/homewizard_energy/errors.py +0 -0
  8. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/homewizard_energy/homewizard_energy.py +0 -0
  9. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/homewizard_energy/models.py +0 -0
  10. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/homewizard_energy/py.typed +0 -0
  11. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/homewizard_energy/v1/__init__.py +0 -0
  12. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/homewizard_energy/v1/const.py +0 -0
  13. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/homewizard_energy/v2/__init__.py +0 -0
  14. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/homewizard_energy/v2/cacert.py +0 -0
  15. {python_homewizard_energy-8.0.0a4 → python_homewizard_energy-8.0.0a5}/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.0.0a4
3
+ Version: 8.0.0a5
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
@@ -16,7 +16,7 @@ Requires-Dist: async-timeout (>=4.0.3,<6.0.0)
16
16
  Requires-Dist: backoff (>=2.2.1,<3.0.0)
17
17
  Requires-Dist: mashumaro (>=3.15,<4.0)
18
18
  Requires-Dist: multidict (>=6.0.5,<7.0.0)
19
- Requires-Dist: orjson (>=3.10.13,<4.0.0)
19
+ Requires-Dist: orjson (>=3.10,<4.0)
20
20
  Project-URL: Bug Tracker, https://github.com/homewizard/python-homewizard-energy/issues
21
21
  Project-URL: Changelog, https://github.com/homewizard/python-homewizard-energy/releases
22
22
  Project-URL: Documentation, https://github.com/homewizard/python-homewizard-energy
@@ -27,10 +27,10 @@ async def has_v2_api(host: str, websession: ClientSession | None = None) -> bool
27
27
  # v2 api is https only and returns a 401 Unauthorized when no key provided,
28
28
  # no connection can be made if the device is not v2
29
29
  url = f"https://{host}/api"
30
- async with websession.get(
31
- url, ssl=False, raise_for_status=False, timeout=15
32
- ) as res:
33
- return res.status == 401
30
+ res = await websession.get(url, ssl=False, raise_for_status=False, timeout=5)
31
+ res.close()
32
+
33
+ return res.status == 401
34
34
  except Exception: # pylint: disable=broad-except
35
35
  # all other status/exceptions means the device is not v2 or not reachable at this time
36
36
  return False
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-homewizard-energy"
3
- version = "8.0.0-alpha-4"
3
+ version = "8.0.0-alpha-5"
4
4
  description = "Asynchronous Python client for the HomeWizard Energy"
5
5
  authors = ["DCSBL"]
6
6
  maintainers = ["DCSBL"]
@@ -21,7 +21,7 @@ aiohttp = ">=3.0.0"
21
21
  async-timeout = ">=4.0.3,<6.0.0"
22
22
  multidict = "^6.0.5" ## To fix aiohttp dependency at python 3.12
23
23
  backoff = "^2.2.1"
24
- orjson = "^3.10.13"
24
+ orjson = "^3.10"
25
25
  mashumaro = "^3.15"
26
26
 
27
27
  [tool.poetry.dev-dependencies]