python-qube-heatpump 1.4.4__tar.gz → 1.4.5__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.4 → python_qube_heatpump-1.4.5}/PKG-INFO +1 -1
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/pyproject.toml +1 -1
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/client.py +0 -18
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/.github/workflows/ci.yml +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/.github/workflows/python-publish.yml +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/.gitignore +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/AGENTS.md +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/CLAUDE.md +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/LICENSE +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/README.md +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/pytest.ini +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/__init__.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/const.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/entities/__init__.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/entities/base.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/entities/binary_sensors.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/entities/sensors.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/entities/switches.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/models.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/py.typed +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/tests/conftest.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/tests/test_client.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/tests/test_const.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/tests/test_entities.py +0 -0
- {python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/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.5
|
|
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.4.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/client.py
RENAMED
|
@@ -217,11 +217,6 @@ class QubeClient:
|
|
|
217
217
|
else:
|
|
218
218
|
count = 1
|
|
219
219
|
|
|
220
|
-
_LOGGER.debug(
|
|
221
|
-
"read_entity: key=%s addr=%s input_type=%s data_type=%s count=%s",
|
|
222
|
-
entity.key, entity.address, entity.input_type, data_type_str, count
|
|
223
|
-
)
|
|
224
|
-
|
|
225
220
|
try:
|
|
226
221
|
# Read based on input type (use string comparison for safety)
|
|
227
222
|
input_type_str = entity.input_type.value if entity.input_type else None
|
|
@@ -260,19 +255,11 @@ class QubeClient:
|
|
|
260
255
|
regs = result.registers
|
|
261
256
|
val: float | int = 0
|
|
262
257
|
|
|
263
|
-
_LOGGER.debug(
|
|
264
|
-
"read_entity: key=%s raw_regs=%s", entity.key, regs
|
|
265
|
-
)
|
|
266
|
-
|
|
267
258
|
# Decode based on data type (use string comparison for safety)
|
|
268
259
|
# Qube uses big endian word order (ABCD): regs[0]=MSW, regs[1]=LSW
|
|
269
260
|
if data_type_str == "float32":
|
|
270
261
|
int_val = (regs[0] << 16) | regs[1]
|
|
271
262
|
val = struct.unpack(">f", struct.pack(">I", int_val))[0]
|
|
272
|
-
_LOGGER.debug(
|
|
273
|
-
"read_entity: key=%s float32 int_val=%s decoded=%s",
|
|
274
|
-
entity.key, int_val, val
|
|
275
|
-
)
|
|
276
263
|
elif data_type_str == "int16":
|
|
277
264
|
val = regs[0]
|
|
278
265
|
if val > 32767:
|
|
@@ -294,11 +281,6 @@ class QubeClient:
|
|
|
294
281
|
if entity.offset is not None:
|
|
295
282
|
val = val + entity.offset
|
|
296
283
|
|
|
297
|
-
_LOGGER.debug(
|
|
298
|
-
"read_entity: key=%s final_value=%s (scale=%s, offset=%s)",
|
|
299
|
-
entity.key, val, entity.scale, entity.offset
|
|
300
|
-
)
|
|
301
|
-
|
|
302
284
|
return val
|
|
303
285
|
|
|
304
286
|
except Exception as e:
|
{python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/.github/ISSUE_TEMPLATE/bug_report.yml
RENAMED
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/.github/ISSUE_TEMPLATE/feature_request.yml
RENAMED
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/.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.4 → python_qube_heatpump-1.4.5}/src/python_qube_heatpump/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_qube_heatpump-1.4.4 → python_qube_heatpump-1.4.5}/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.4 → python_qube_heatpump-1.4.5}/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
|