nwp500-python 9.4.0__py3-none-any.whl → 9.4.1__py3-none-any.whl
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.
- nwp500/converters.py +1 -1
- nwp500/mqtt/reconnection.py +7 -0
- {nwp500_python-9.4.0.dist-info → nwp500_python-9.4.1.dist-info}/METADATA +1 -1
- {nwp500_python-9.4.0.dist-info → nwp500_python-9.4.1.dist-info}/RECORD +8 -8
- {nwp500_python-9.4.0.dist-info → nwp500_python-9.4.1.dist-info}/WHEEL +0 -0
- {nwp500_python-9.4.0.dist-info → nwp500_python-9.4.1.dist-info}/entry_points.txt +0 -0
- {nwp500_python-9.4.0.dist-info → nwp500_python-9.4.1.dist-info}/licenses/LICENSE.txt +0 -0
- {nwp500_python-9.4.0.dist-info → nwp500_python-9.4.1.dist-info}/top_level.txt +0 -0
nwp500/converters.py
CHANGED
|
@@ -45,7 +45,7 @@ __all__ = [
|
|
|
45
45
|
#: p90 4.45), agreeing to within 2% by a noisier route
|
|
46
46
|
#: * the same recoveries imply a heat pump COP of 2.89 at 4 Wh/count
|
|
47
47
|
#:
|
|
48
|
-
#: Library versions before
|
|
48
|
+
#: Library versions before 9.3.0 used 10 Wh/count, which overstated reported
|
|
49
49
|
#: tank energy by 2.5x and implied a physically impossible COP of 7.0.
|
|
50
50
|
#:
|
|
51
51
|
#: See ``docs/explanation/tank-energy.rst`` for the full derivation.
|
nwp500/mqtt/reconnection.py
CHANGED
|
@@ -347,6 +347,13 @@ class MqttReconnectionHandler:
|
|
|
347
347
|
f"Error during reconnection attempt: {e}", exc_info=True
|
|
348
348
|
)
|
|
349
349
|
|
|
350
|
+
# A successful quick or deep reconnect builds a new connection, so
|
|
351
|
+
# the SDK never calls on_connection_resumed for it. Reset the
|
|
352
|
+
# counter here, or every later interruption starts with a longer
|
|
353
|
+
# backoff and an earlier deep reconnect than the first one did.
|
|
354
|
+
if self._is_connected_func():
|
|
355
|
+
self._reconnect_attempts = 0
|
|
356
|
+
|
|
350
357
|
# Check final state: report failure when retries are exhausted
|
|
351
358
|
# (limited mode) or a fatal error stopped the loop.
|
|
352
359
|
attempts_exhausted = (
|
|
@@ -4,7 +4,7 @@ nwp500/api_client.py,sha256=4O4hV4mNwxXpbDFu-cEN36-edNW2-fGl9akzF4a437E,18342
|
|
|
4
4
|
nwp500/auth.py,sha256=_XRmkCiFtxQ7H_xwF7tF1kJW8tce2qhJMVfKK9bgZo4,33783
|
|
5
5
|
nwp500/command_decorators.py,sha256=VV0DC9lxA0tQJvGmkxMVmeD7BTRuSOx7SXFiz6US6rI,4947
|
|
6
6
|
nwp500/config.py,sha256=S47toIsQJuuEZgYt7xiWFnFjWm4Cp0cBS2VPR6lYejY,299
|
|
7
|
-
nwp500/converters.py,sha256=
|
|
7
|
+
nwp500/converters.py,sha256=FZE3treCCUQYLE0J9ewlMtHKpVv6rgiYn9En90Ibsw8,7393
|
|
8
8
|
nwp500/device_capabilities.py,sha256=FXoV6eOhO9aYF3UFQVa89t0Bw180afQvLM8D3Ihua2c,4685
|
|
9
9
|
nwp500/device_info_cache.py,sha256=8AdPbY-zA-ajwTTMI3Tnthd8BOE2GY4Lj6c6FH-0GgI,6150
|
|
10
10
|
nwp500/encoding.py,sha256=RhtbUS7K72jEMBDLDOD42hv40VgQHxb3lKqccvx8Ngg,19223
|
|
@@ -50,14 +50,14 @@ nwp500/mqtt/connection.py,sha256=fNrOtBJxsqk054YDUmipnwI3yfBHx1anXb_07e0X9XU,177
|
|
|
50
50
|
nwp500/mqtt/control.py,sha256=tw4Ih7ZClpHIE2oqcPQZuw5E174RiiJvuccPKYQWsr0,41071
|
|
51
51
|
nwp500/mqtt/diagnostics.py,sha256=NDkPExS4FObGCWJXAhENqNQUm8Bda5GDBR7_o3ylSAo,15723
|
|
52
52
|
nwp500/mqtt/periodic.py,sha256=WKyyO61yTZJfOm9JAtBp6Onyk-XNj0U544sYMCKvTZw,14729
|
|
53
|
-
nwp500/mqtt/reconnection.py,sha256=
|
|
53
|
+
nwp500/mqtt/reconnection.py,sha256=g9OuLlf1lVx_pbV6d7QHq7IcCflKkypPYSLSDTp58tQ,16499
|
|
54
54
|
nwp500/mqtt/state_tracker.py,sha256=uZlDFNYn7DOXmXPbk-8jXva_QKEvLES9T_BYbQSkhvM,6364
|
|
55
55
|
nwp500/mqtt/subscriptions.py,sha256=iCcXwP8KDRXqShlxdkbxGFk9e11i4YrD88kWKcp8cP8,38094
|
|
56
56
|
nwp500/mqtt/types.py,sha256=86R7gwsc1XabA_ABWeALeC5EImlTziFFn1DrP1x8Yy4,1605
|
|
57
57
|
nwp500/mqtt/utils.py,sha256=qXafc9GDpVY9o9o8DQLKBM8t0E401j3EPpZ0rC4snCY,13415
|
|
58
|
-
nwp500_python-9.4.
|
|
59
|
-
nwp500_python-9.4.
|
|
60
|
-
nwp500_python-9.4.
|
|
61
|
-
nwp500_python-9.4.
|
|
62
|
-
nwp500_python-9.4.
|
|
63
|
-
nwp500_python-9.4.
|
|
58
|
+
nwp500_python-9.4.1.dist-info/licenses/LICENSE.txt,sha256=EUOsypJ3iEqJ-9tdo_TSZHwB0Rd-7p0JzToEI5CMBJU,1085
|
|
59
|
+
nwp500_python-9.4.1.dist-info/METADATA,sha256=O5IuUShR2IRTsVTgs_C_sl12kP4Y9TdGLAOq2PuSTmQ,5091
|
|
60
|
+
nwp500_python-9.4.1.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
61
|
+
nwp500_python-9.4.1.dist-info/entry_points.txt,sha256=p8vGDEbUIOT_TzDG-XnJ3lw-9yaeHrDPNN7fAx4-78I,52
|
|
62
|
+
nwp500_python-9.4.1.dist-info/top_level.txt,sha256=DRPIenxKnssWeaetq428gYfwrKjLGN1z2NOtztIvxZE,7
|
|
63
|
+
nwp500_python-9.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|