python-homewizard-energy 4.1.0__tar.gz → 4.2.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-4.1.0 → python_homewizard_energy-4.2.0}/PKG-INFO +3 -2
- {python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/homewizard_energy/homewizard_energy.py +1 -0
- {python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/homewizard_energy/models.py +31 -4
- {python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/pyproject.toml +9 -8
- {python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/LICENSE +0 -0
- {python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/README.md +0 -0
- {python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/homewizard_energy/__init__.py +0 -0
- {python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/homewizard_energy/const.py +0 -0
- {python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/homewizard_energy/errors.py +0 -0
- {python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.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: 4.
|
|
3
|
+
Version: 4.2.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
|
|
@@ -13,7 +13,8 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
-
Requires-Dist: aiohttp (
|
|
16
|
+
Requires-Dist: aiohttp (==3.9.1)
|
|
17
|
+
Requires-Dist: async-timeout (==4.0.3)
|
|
17
18
|
Project-URL: Bug Tracker, https://github.com/homewizard/python-homewizard-energy/issues
|
|
18
19
|
Project-URL: Changelog, https://github.com/homewizard/python-homewizard-energy/releases
|
|
19
20
|
Project-URL: Documentation, https://github.com/homewizard/python-homewizard-energy
|
{python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/homewizard_energy/models.py
RENAMED
|
@@ -67,14 +67,31 @@ class Data:
|
|
|
67
67
|
active_power_l2_w: float | None
|
|
68
68
|
active_power_l3_w: float | None
|
|
69
69
|
|
|
70
|
+
active_voltage_v: float | None
|
|
70
71
|
active_voltage_l1_v: float | None
|
|
71
72
|
active_voltage_l2_v: float | None
|
|
72
73
|
active_voltage_l3_v: float | None
|
|
73
74
|
|
|
75
|
+
active_current_a: float | None
|
|
74
76
|
active_current_l1_a: float | None
|
|
75
77
|
active_current_l2_a: float | None
|
|
76
78
|
active_current_l3_a: float | None
|
|
77
79
|
|
|
80
|
+
active_apparent_power_va: float | None
|
|
81
|
+
active_apparent_power_l1_va: float | None
|
|
82
|
+
active_apparent_power_l2_va: float | None
|
|
83
|
+
active_apparent_power_l3_va: float | None
|
|
84
|
+
|
|
85
|
+
active_reactive_power_var: float | None
|
|
86
|
+
active_reactive_power_l1_var: float | None
|
|
87
|
+
active_reactive_power_l2_var: float | None
|
|
88
|
+
active_reactive_power_l3_var: float | None
|
|
89
|
+
|
|
90
|
+
active_power_factor: float | None
|
|
91
|
+
active_power_factor_l1: float | None
|
|
92
|
+
active_power_factor_l2: float | None
|
|
93
|
+
active_power_factor_l3: float | None
|
|
94
|
+
|
|
78
95
|
active_frequency_hz: float | None
|
|
79
96
|
|
|
80
97
|
voltage_sag_l1_count: int | None
|
|
@@ -184,12 +201,26 @@ class Data:
|
|
|
184
201
|
active_power_l1_w=data.get("active_power_l1_w"),
|
|
185
202
|
active_power_l2_w=data.get("active_power_l2_w"),
|
|
186
203
|
active_power_l3_w=data.get("active_power_l3_w"),
|
|
204
|
+
active_voltage_v=data.get("active_voltage_v"),
|
|
187
205
|
active_voltage_l1_v=data.get("active_voltage_l1_v"),
|
|
188
206
|
active_voltage_l2_v=data.get("active_voltage_l2_v"),
|
|
189
207
|
active_voltage_l3_v=data.get("active_voltage_l3_v"),
|
|
208
|
+
active_current_a=data.get("active_current_a"),
|
|
190
209
|
active_current_l1_a=data.get("active_current_l1_a"),
|
|
191
210
|
active_current_l2_a=data.get("active_current_l2_a"),
|
|
192
211
|
active_current_l3_a=data.get("active_current_l3_a"),
|
|
212
|
+
active_apparent_power_va=data.get("active_apparent_power_va"),
|
|
213
|
+
active_apparent_power_l1_va=data.get("active_apparent_power_l1_va"),
|
|
214
|
+
active_apparent_power_l2_va=data.get("active_apparent_power_l2_va"),
|
|
215
|
+
active_apparent_power_l3_va=data.get("active_apparent_power_l3_va"),
|
|
216
|
+
active_reactive_power_var=data.get("active_reactive_power_var"),
|
|
217
|
+
active_reactive_power_l1_var=data.get("active_reactive_power_l1_var"),
|
|
218
|
+
active_reactive_power_l2_var=data.get("active_reactive_power_l2_var"),
|
|
219
|
+
active_reactive_power_l3_var=data.get("active_reactive_power_l3_var"),
|
|
220
|
+
active_power_factor=data.get("active_power_factor"),
|
|
221
|
+
active_power_factor_l1=data.get("active_power_factor_l1"),
|
|
222
|
+
active_power_factor_l2=data.get("active_power_factor_l2"),
|
|
223
|
+
active_power_factor_l3=data.get("active_power_factor_l3"),
|
|
193
224
|
active_frequency_hz=data.get("active_frequency_hz"),
|
|
194
225
|
voltage_sag_l1_count=data.get("voltage_sag_l1_count"),
|
|
195
226
|
voltage_sag_l2_count=data.get("voltage_sag_l2_count"),
|
|
@@ -234,10 +265,6 @@ class ExternalDevice:
|
|
|
234
265
|
WATER_METER = 7
|
|
235
266
|
INLET_HEAT_METER = 12
|
|
236
267
|
|
|
237
|
-
@classmethod
|
|
238
|
-
def _missing_(cls, _: Any) -> ExternalDevice.DeviceType:
|
|
239
|
-
return cls.UNKNOWN
|
|
240
|
-
|
|
241
268
|
@staticmethod
|
|
242
269
|
def from_string(value: str) -> ExternalDevice.DeviceType:
|
|
243
270
|
"""Convert string to enum."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "python-homewizard-energy"
|
|
3
|
-
version = "4.
|
|
3
|
+
version = "4.2.0"
|
|
4
4
|
description = "Asynchronous Python client for the HomeWizard Energy"
|
|
5
5
|
authors = ["DCSBL"]
|
|
6
6
|
maintainers = ["DCSBL"]
|
|
@@ -17,7 +17,8 @@ packages = [
|
|
|
17
17
|
|
|
18
18
|
[tool.poetry.dependencies]
|
|
19
19
|
python = "^3.9"
|
|
20
|
-
aiohttp = "
|
|
20
|
+
aiohttp = "3.9.1"
|
|
21
|
+
async-timeout = "4.0.3"
|
|
21
22
|
|
|
22
23
|
[tool.poetry.dev-dependencies]
|
|
23
24
|
aresponses = "^2.1.6"
|
|
@@ -25,12 +26,12 @@ black = "^22.12"
|
|
|
25
26
|
blacken-docs = "^1.16.0"
|
|
26
27
|
flake8 = "^4.0.1"
|
|
27
28
|
flake8-docstrings = "^1.7.0"
|
|
28
|
-
isort = "^5.
|
|
29
|
-
pre-commit = "^3.
|
|
29
|
+
isort = "^5.13.2"
|
|
30
|
+
pre-commit = "^3.6.0"
|
|
30
31
|
pre-commit-hooks = "^4.5.0"
|
|
31
|
-
pylint = "^3.0.
|
|
32
|
-
pytest = "^7.4.
|
|
33
|
-
pytest-asyncio = "^0.
|
|
32
|
+
pylint = "^3.0.3"
|
|
33
|
+
pytest = "^7.4.4"
|
|
34
|
+
pytest-asyncio = "^0.23.2"
|
|
34
35
|
pytest-cov = "^4.1.0"
|
|
35
36
|
yamllint = "^1.33.0"
|
|
36
37
|
pyupgrade = "^3.15.0"
|
|
@@ -45,7 +46,7 @@ flake8-markdown = "^0.3.0"
|
|
|
45
46
|
darglint = "^1.8.1"
|
|
46
47
|
safety = "^2.3.5"
|
|
47
48
|
codespell = "^2.2.6"
|
|
48
|
-
bandit = "^1.7.
|
|
49
|
+
bandit = "^1.7.6"
|
|
49
50
|
syrupy = "^4.6.0"
|
|
50
51
|
|
|
51
52
|
[tool.poetry.urls]
|
|
File without changes
|
|
File without changes
|
{python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/homewizard_energy/__init__.py
RENAMED
|
File without changes
|
{python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/homewizard_energy/const.py
RENAMED
|
File without changes
|
{python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/homewizard_energy/errors.py
RENAMED
|
File without changes
|
{python_homewizard_energy-4.1.0 → python_homewizard_energy-4.2.0}/homewizard_energy/py.typed
RENAMED
|
File without changes
|