python-homewizard-energy 4.3.0__tar.gz → 5.0.0b1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-homewizard-energy
3
- Version: 4.3.0
3
+ Version: 5.0.0b1
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
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Requires-Dist: aiohttp (>=3.0.0)
17
- Requires-Dist: async-timeout (==4.0.3)
17
+ Requires-Dist: async-timeout (>=4.0.3,<5.0.0)
18
18
  Project-URL: Bug Tracker, https://github.com/homewizard/python-homewizard-energy/issues
19
19
  Project-URL: Changelog, https://github.com/homewizard/python-homewizard-energy/releases
20
20
  Project-URL: Documentation, https://github.com/homewizard/python-homewizard-energy
@@ -51,12 +51,12 @@ IP_ADDRESS = "192.168.1.123"
51
51
 
52
52
  async def main():
53
53
 
54
- async with HomeWizardEnergy(host=IP_ADDRESS) as api
54
+ async with HomeWizardEnergy(host=IP_ADDRESS) as api:
55
55
 
56
- print(await api.device())
57
- print(await api.data())
56
+ print(await api.device()) # Get device information, like firmware version
57
+ print(await api.data()) # Get measurements, like power or water usage
58
58
 
59
- await api.state_set(power_on=True)
59
+ await api.state_set(power_on=True) # Turn on the Energy Socket outlet
60
60
 
61
61
 
62
62
  asyncio.run(main())
@@ -28,12 +28,12 @@ IP_ADDRESS = "192.168.1.123"
28
28
 
29
29
  async def main():
30
30
 
31
- async with HomeWizardEnergy(host=IP_ADDRESS) as api
31
+ async with HomeWizardEnergy(host=IP_ADDRESS) as api:
32
32
 
33
- print(await api.device())
34
- print(await api.data())
33
+ print(await api.device()) # Get device information, like firmware version
34
+ print(await api.data()) # Get measurements, like power or water usage
35
35
 
36
- await api.state_set(power_on=True)
36
+ await api.state_set(power_on=True) # Turn on the Energy Socket outlet
37
37
 
38
38
 
39
39
  asyncio.run(main())
@@ -0,0 +1,7 @@
1
+ """Constants for HomeWizard Energy."""
2
+
3
+ SUPPORTED_API_VERSION = "v1"
4
+
5
+ SUPPORTS_STATE = ["HWE-SKT"]
6
+ SUPPORTS_IDENTIFY = ["HWE-SKT", "HWE-P1", "HWE-WTR"]
7
+ SUPPORTS_DECRYPTION = ["HWE-P1"]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "python-homewizard-energy"
3
- version = "4.3.0"
3
+ version = "5.0.0-beta-1"
4
4
  description = "Asynchronous Python client for the HomeWizard Energy"
5
5
  authors = ["DCSBL"]
6
6
  maintainers = ["DCSBL"]
@@ -18,10 +18,10 @@ packages = [
18
18
  [tool.poetry.dependencies]
19
19
  python = "^3.9"
20
20
  aiohttp = ">=3.0.0"
21
- async-timeout = "4.0.3"
21
+ async-timeout = "^4.0.3"
22
22
 
23
23
  [tool.poetry.dev-dependencies]
24
- aresponses = "^2.1.6"
24
+ aresponses = "^3.0.0"
25
25
  black = "^22.12"
26
26
  blacken-docs = "^1.16.0"
27
27
  flake8 = "^4.0.1"
@@ -31,12 +31,12 @@ pre-commit = "^3.6.0"
31
31
  pre-commit-hooks = "^4.5.0"
32
32
  pylint = "^3.0.3"
33
33
  pytest = "^7.4.4"
34
- pytest-asyncio = "^0.23.2"
34
+ pytest-asyncio = "^0.23.4"
35
35
  pytest-cov = "^4.1.0"
36
36
  yamllint = "^1.33.0"
37
37
  pyupgrade = "^3.15.0"
38
38
  flake8-simplify = "^0.21.0"
39
- vulture = "^2.10"
39
+ vulture = "^2.11"
40
40
  flake8-bandit = "^3.0.0"
41
41
  flake8-bugbear = "^23.3.12"
42
42
  flake8-builtins = "^2.2.0"
@@ -44,9 +44,9 @@ flake8-comprehensions = "^3.14.0"
44
44
  flake8-eradicate = "^1.2.1"
45
45
  flake8-markdown = "^0.3.0"
46
46
  darglint = "^1.8.1"
47
- safety = "^2.3.5"
47
+ safety = "^3.0.1"
48
48
  codespell = "^2.2.6"
49
- bandit = "^1.7.6"
49
+ bandit = "^1.7.7"
50
50
  syrupy = "^4.6.0"
51
51
 
52
52
  [tool.poetry.urls]
@@ -1,15 +0,0 @@
1
- """Constants for HomeWizard Energy."""
2
-
3
- SUPPORTED_API_VERSION = "v1"
4
-
5
- SUPPORTS_STATE = ["HWE-SKT"]
6
- SUPPORTS_IDENTIFY = ["HWE-SKT", "HWE-P1"]
7
- SUPPORTS_SYSTEM = [
8
- "HWE-SKT",
9
- "HWE-P1",
10
- "HWE-KWH1",
11
- "HWE-KWH3",
12
- "SDM230-wifi",
13
- "SDM630-wifi",
14
- ]
15
- SUPPORTS_DECRYPTION = ["HWE-P1"]