python-qube-heatpump 1.3.0__tar.gz → 1.3.1__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.3.0 → python_qube_heatpump-1.3.1}/PKG-INFO +1 -1
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/pyproject.toml +1 -1
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/client.py +10 -10
- python_qube_heatpump-1.3.1/src/python_qube_heatpump/py.typed +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/.github/workflows/ci.yml +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/.github/workflows/python-publish.yml +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/.gitignore +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/AGENTS.md +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/CLAUDE.md +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/LICENSE +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/README.md +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/pytest.ini +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/__init__.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/const.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/entities/__init__.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/entities/base.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/entities/binary_sensors.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/entities/sensors.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/entities/switches.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/models.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/tests/conftest.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/tests/test_client.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/tests/test_const.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/tests/test_entities.py +0 -0
- {python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/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.3.
|
|
3
|
+
Version: 1.3.1
|
|
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
|
{python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/client.py
RENAMED
|
@@ -94,11 +94,11 @@ class QubeClient:
|
|
|
94
94
|
try:
|
|
95
95
|
if reg_type == const.ModbusType.INPUT:
|
|
96
96
|
result = await self._client.read_input_registers(
|
|
97
|
-
address, count,
|
|
97
|
+
address, count, device_id=self.unit
|
|
98
98
|
)
|
|
99
99
|
else:
|
|
100
100
|
result = await self._client.read_holding_registers(
|
|
101
|
-
address, count,
|
|
101
|
+
address, count, device_id=self.unit
|
|
102
102
|
)
|
|
103
103
|
|
|
104
104
|
if result.isError():
|
|
@@ -180,7 +180,7 @@ class QubeClient:
|
|
|
180
180
|
# Read based on input type
|
|
181
181
|
if entity.input_type == InputType.COIL:
|
|
182
182
|
result = await self._client.read_coils(
|
|
183
|
-
entity.address, count=1,
|
|
183
|
+
entity.address, count=1, device_id=self.unit
|
|
184
184
|
)
|
|
185
185
|
if result.isError():
|
|
186
186
|
_LOGGER.warning("Error reading coil %s", entity.address)
|
|
@@ -189,7 +189,7 @@ class QubeClient:
|
|
|
189
189
|
|
|
190
190
|
if entity.input_type == InputType.DISCRETE_INPUT:
|
|
191
191
|
result = await self._client.read_discrete_inputs(
|
|
192
|
-
entity.address, count=1,
|
|
192
|
+
entity.address, count=1, device_id=self.unit
|
|
193
193
|
)
|
|
194
194
|
if result.isError():
|
|
195
195
|
_LOGGER.warning("Error reading discrete input %s", entity.address)
|
|
@@ -198,11 +198,11 @@ class QubeClient:
|
|
|
198
198
|
|
|
199
199
|
if entity.input_type == InputType.INPUT_REGISTER:
|
|
200
200
|
result = await self._client.read_input_registers(
|
|
201
|
-
entity.address, count,
|
|
201
|
+
entity.address, count, device_id=self.unit
|
|
202
202
|
)
|
|
203
203
|
else: # HOLDING_REGISTER
|
|
204
204
|
result = await self._client.read_holding_registers(
|
|
205
|
-
entity.address, count,
|
|
205
|
+
entity.address, count, device_id=self.unit
|
|
206
206
|
)
|
|
207
207
|
|
|
208
208
|
if result.isError():
|
|
@@ -340,7 +340,7 @@ class QubeClient:
|
|
|
340
340
|
|
|
341
341
|
try:
|
|
342
342
|
result = await self._client.write_coil(
|
|
343
|
-
entity.address, value,
|
|
343
|
+
entity.address, value, device_id=self.unit
|
|
344
344
|
)
|
|
345
345
|
if result.isError():
|
|
346
346
|
_LOGGER.warning("Error writing switch %s", key)
|
|
@@ -388,17 +388,17 @@ class QubeClient:
|
|
|
388
388
|
int_val = struct.unpack(">I", packed)[0]
|
|
389
389
|
regs = [int_val & 0xFFFF, (int_val >> 16) & 0xFFFF]
|
|
390
390
|
result = await self._client.write_registers(
|
|
391
|
-
entity.address, regs,
|
|
391
|
+
entity.address, regs, device_id=self.unit
|
|
392
392
|
)
|
|
393
393
|
elif entity.data_type == DataType.INT16:
|
|
394
394
|
if write_value < 0:
|
|
395
395
|
write_value = int(write_value) + 65536
|
|
396
396
|
result = await self._client.write_register(
|
|
397
|
-
entity.address, int(write_value),
|
|
397
|
+
entity.address, int(write_value), device_id=self.unit
|
|
398
398
|
)
|
|
399
399
|
elif entity.data_type == DataType.UINT16:
|
|
400
400
|
result = await self._client.write_register(
|
|
401
|
-
entity.address, int(write_value),
|
|
401
|
+
entity.address, int(write_value), device_id=self.unit
|
|
402
402
|
)
|
|
403
403
|
else:
|
|
404
404
|
_LOGGER.warning("Unsupported data type for writing: %s", entity.data_type)
|
|
File without changes
|
{python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/.github/ISSUE_TEMPLATE/bug_report.yml
RENAMED
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/.github/ISSUE_TEMPLATE/feature_request.yml
RENAMED
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/.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.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/src/python_qube_heatpump/entities/base.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.3.0 → python_qube_heatpump-1.3.1}/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
|