python-qube-heatpump 1.4.1__tar.gz → 1.4.2__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_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/PKG-INFO +2 -2
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/pyproject.toml +2 -2
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/client.py +10 -10
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/.github/workflows/ci.yml +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/.github/workflows/python-publish.yml +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/.gitignore +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/AGENTS.md +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/CLAUDE.md +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/LICENSE +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/README.md +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/pytest.ini +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/__init__.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/const.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/entities/__init__.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/entities/base.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/entities/binary_sensors.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/entities/sensors.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/entities/switches.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/models.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/py.typed +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/tests/conftest.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/tests/test_client.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/tests/test_const.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/tests/test_entities.py +0 -0
- {python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/tests/test_models.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-qube-heatpump
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.2
|
|
4
4
|
Summary: Async Modbus client for Qube Heat Pumps
|
|
5
5
|
Project-URL: Homepage, https://github.com/MattieGit/python-qube-heatpump
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/MattieGit/python-qube-heatpump/issues
|
|
@@ -10,7 +10,7 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
12
|
Requires-Python: >=3.12
|
|
13
|
-
Requires-Dist: pymodbus>=3.
|
|
13
|
+
Requires-Dist: pymodbus>=3.11.0
|
|
14
14
|
Provides-Extra: test
|
|
15
15
|
Requires-Dist: pytest; extra == 'test'
|
|
16
16
|
Requires-Dist: pytest-asyncio; extra == 'test'
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-qube-heatpump"
|
|
7
|
-
version = "1.4.
|
|
7
|
+
version = "1.4.2"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="MattieGit", email="6250046+MattieGit@users.noreply.github.com" },
|
|
10
10
|
]
|
|
@@ -17,7 +17,7 @@ classifiers = [
|
|
|
17
17
|
"Operating System :: OS Independent",
|
|
18
18
|
]
|
|
19
19
|
dependencies = [
|
|
20
|
-
"pymodbus>=3.
|
|
20
|
+
"pymodbus>=3.11.0",
|
|
21
21
|
]
|
|
22
22
|
|
|
23
23
|
[project.optional-dependencies]
|
{python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/client.py
RENAMED
|
@@ -135,11 +135,11 @@ class QubeClient:
|
|
|
135
135
|
try:
|
|
136
136
|
if reg_type == const.ModbusType.INPUT:
|
|
137
137
|
result = await self._client.read_input_registers(
|
|
138
|
-
address, count=count,
|
|
138
|
+
address, count=count, device_id=self.unit
|
|
139
139
|
)
|
|
140
140
|
else:
|
|
141
141
|
result = await self._client.read_holding_registers(
|
|
142
|
-
address, count=count,
|
|
142
|
+
address, count=count, device_id=self.unit
|
|
143
143
|
)
|
|
144
144
|
|
|
145
145
|
if result.isError():
|
|
@@ -221,7 +221,7 @@ class QubeClient:
|
|
|
221
221
|
# Read based on input type
|
|
222
222
|
if entity.input_type == InputType.COIL:
|
|
223
223
|
result = await self._client.read_coils(
|
|
224
|
-
entity.address, count=1,
|
|
224
|
+
entity.address, count=1, device_id=self.unit
|
|
225
225
|
)
|
|
226
226
|
if result.isError():
|
|
227
227
|
_LOGGER.warning("Error reading coil %s", entity.address)
|
|
@@ -230,7 +230,7 @@ class QubeClient:
|
|
|
230
230
|
|
|
231
231
|
if entity.input_type == InputType.DISCRETE_INPUT:
|
|
232
232
|
result = await self._client.read_discrete_inputs(
|
|
233
|
-
entity.address, count=1,
|
|
233
|
+
entity.address, count=1, device_id=self.unit
|
|
234
234
|
)
|
|
235
235
|
if result.isError():
|
|
236
236
|
_LOGGER.warning("Error reading discrete input %s", entity.address)
|
|
@@ -239,11 +239,11 @@ class QubeClient:
|
|
|
239
239
|
|
|
240
240
|
if entity.input_type == InputType.INPUT_REGISTER:
|
|
241
241
|
result = await self._client.read_input_registers(
|
|
242
|
-
entity.address, count=count,
|
|
242
|
+
entity.address, count=count, device_id=self.unit
|
|
243
243
|
)
|
|
244
244
|
else: # HOLDING_REGISTER
|
|
245
245
|
result = await self._client.read_holding_registers(
|
|
246
|
-
entity.address, count=count,
|
|
246
|
+
entity.address, count=count, device_id=self.unit
|
|
247
247
|
)
|
|
248
248
|
|
|
249
249
|
if result.isError():
|
|
@@ -381,7 +381,7 @@ class QubeClient:
|
|
|
381
381
|
|
|
382
382
|
try:
|
|
383
383
|
result = await self._client.write_coil(
|
|
384
|
-
entity.address, value,
|
|
384
|
+
entity.address, value, device_id=self.unit
|
|
385
385
|
)
|
|
386
386
|
if result.isError():
|
|
387
387
|
_LOGGER.warning("Error writing switch %s", key)
|
|
@@ -429,17 +429,17 @@ class QubeClient:
|
|
|
429
429
|
int_val = struct.unpack(">I", packed)[0]
|
|
430
430
|
regs = [int_val & 0xFFFF, (int_val >> 16) & 0xFFFF]
|
|
431
431
|
result = await self._client.write_registers(
|
|
432
|
-
entity.address, regs,
|
|
432
|
+
entity.address, regs, device_id=self.unit
|
|
433
433
|
)
|
|
434
434
|
elif entity.data_type == DataType.INT16:
|
|
435
435
|
if write_value < 0:
|
|
436
436
|
write_value = int(write_value) + 65536
|
|
437
437
|
result = await self._client.write_register(
|
|
438
|
-
entity.address, int(write_value),
|
|
438
|
+
entity.address, int(write_value), device_id=self.unit
|
|
439
439
|
)
|
|
440
440
|
elif entity.data_type == DataType.UINT16:
|
|
441
441
|
result = await self._client.write_register(
|
|
442
|
-
entity.address, int(write_value),
|
|
442
|
+
entity.address, int(write_value), device_id=self.unit
|
|
443
443
|
)
|
|
444
444
|
else:
|
|
445
445
|
_LOGGER.warning("Unsupported data type for writing: %s", entity.data_type)
|
{python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/.github/ISSUE_TEMPLATE/bug_report.yml
RENAMED
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/.github/ISSUE_TEMPLATE/feature_request.yml
RENAMED
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/.github/workflows/python-publish.yml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/entities/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.4.1 → python_qube_heatpump-1.4.2}/src/python_qube_heatpump/models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|