PyPlumIO 0.5.34__py3-none-any.whl → 0.5.35__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: PyPlumIO
3
- Version: 0.5.34
3
+ Version: 0.5.35
4
4
  Summary: PyPlumIO is a native ecoNET library for Plum ecoMAX controllers.
5
5
  Author-email: Denis Paavilainen <denpa@denpa.pro>
6
6
  License: MIT License
@@ -1,15 +1,15 @@
1
1
  pyplumio/__init__.py,sha256=ditJTIOFGJDg60atHzOpiggdUrZHpSynno7MtpZUGVk,3299
2
2
  pyplumio/__main__.py,sha256=3IwHHSq-iay5FaeMc95klobe-xv82yydSKcBE7BFZ6M,500
3
- pyplumio/_version.py,sha256=NdVLEG4QoQ2gCknxsIGvrBsx6YVY3lCufzs3YmFEJws,413
3
+ pyplumio/_version.py,sha256=J8xgWxzK8uRktLMJfG0M8fVxK4sfrTuU-akVgfoP1wU,413
4
4
  pyplumio/connection.py,sha256=6mUbcjGxxEhMVIbzZgCqH-Ez-fcYoRj7ZbVSzpikpNA,5949
5
5
  pyplumio/const.py,sha256=LyXa5aVy2KxnZq7H7F8s5SYsAgEC2UzZYMMRauliB2E,5502
6
- pyplumio/exceptions.py,sha256=Wn-y5AJ5xfaBlHhTUVKB27_0Us8_OVHqh-sicnr9sYA,700
6
+ pyplumio/exceptions.py,sha256=lzZFzq9aszav_pmAbWbN4IfzAAqZe0nE0mRFsscJ3rw,772
7
7
  pyplumio/filters.py,sha256=AMW1zHQ1YjJfHX7e87Dhv7AGixJ3y9Vn-_JAQn7vIsg,12526
8
8
  pyplumio/protocol.py,sha256=VRxrj8vZ1FMawqblKkyxg_V61TBSvVynd9u0JXYnMUU,8090
9
9
  pyplumio/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  pyplumio/stream.py,sha256=Ne-mWkO6FpILAjGdagbAh_VL3QEla-eDiT2N-kOc5o4,4883
11
11
  pyplumio/utils.py,sha256=TnBzRopinyp92wruguijxcIYmaeyNVTFX0dygI5FCMU,823
12
- pyplumio/devices/__init__.py,sha256=aOn9G7uo-CXM8BPqfm1GjmBLmWuekw-qyiEXjYG30Ps,8083
12
+ pyplumio/devices/__init__.py,sha256=v3EwUf2cGj9Mbxwa6kRMYqUIiREVIbxaVZaR2p5jmaE,8123
13
13
  pyplumio/devices/ecomax.py,sha256=LWDIlnC2lIOF2L5obLwpHKY0KTxp81TbrMGAzk7GlSw,15528
14
14
  pyplumio/devices/ecoster.py,sha256=jNWli7ye9T6yfkcFJZhhUHH7KOv-L6AgYFp_dKyv3OM,263
15
15
  pyplumio/devices/mixer.py,sha256=CnHWrJELtFgs2YTHGpQwKr2UTRdetX76OvLBA2PH-fs,3207
@@ -22,7 +22,7 @@ pyplumio/helpers/__init__.py,sha256=H2xxdkF-9uADLwEbfBUoxNTdwru3L5Z2cfJjgsuRsn0,
22
22
  pyplumio/helpers/data_types.py,sha256=nB3afOLmppgSCWkZoX1-1yWPNMMNSem77x7XQ1Mi8H8,9103
23
23
  pyplumio/helpers/event_manager.py,sha256=xQOfiP_nP1Pz5zhB6HU5gXyyJXjhisYshL8_HRxDgt8,6412
24
24
  pyplumio/helpers/factory.py,sha256=v07s9DyihfkNUzt7ndyJbNd_DLS8UpRkut_xkGrbi6c,1123
25
- pyplumio/helpers/parameter.py,sha256=UWv4cQ-Mk2hBD3F2amS-6OIL0ulcMmEZcnogOXcXhng,12373
25
+ pyplumio/helpers/parameter.py,sha256=lolBkPp69cD1ME8SVQf5VVd_R7nOtrZuhUvKCz1amIg,12390
26
26
  pyplumio/helpers/schedule.py,sha256=rlq3O2Xflqks6V1rMoHKy_lww8zJJpuHFFouM2pikJw,5417
27
27
  pyplumio/helpers/task_manager.py,sha256=HAd69yGTRL0zQsu-ywnbLu1UXiJzgHWuhYWA--vs4lQ,1181
28
28
  pyplumio/helpers/timeout.py,sha256=JAhWNtIpcXyVILIwHWVy5mYofqbbRDGKLdTUKkQuajs,772
@@ -53,8 +53,8 @@ pyplumio/structures/statuses.py,sha256=wkoynyMRr1VREwfBC6vU48kPA8ZQ83pcXuciy2xHJ
53
53
  pyplumio/structures/temperatures.py,sha256=1CDzehNmbALz1Jyt_9gZNIk52q6Wv-xQXjijVDCVYec,2337
54
54
  pyplumio/structures/thermostat_parameters.py,sha256=QA-ZyulBG3P10sqgdI7rmpQYlKm9SJIXxBxAXs8Bwow,8295
55
55
  pyplumio/structures/thermostat_sensors.py,sha256=8e1TxYIJTQKT0kIGO9gG4hGdLOBUpIhiPToQyOMyeNE,3237
56
- PyPlumIO-0.5.34.dist-info/LICENSE,sha256=m-UuZFjXJ22uPTGm9kSHS8bqjsf5T8k2wL9bJn1Y04o,1088
57
- PyPlumIO-0.5.34.dist-info/METADATA,sha256=fKpSdOn-36ISpqOsoM7wiwnbJn0jHfvdHnwyIge5KQM,5510
58
- PyPlumIO-0.5.34.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
59
- PyPlumIO-0.5.34.dist-info/top_level.txt,sha256=kNBz9UPPkPD9teDn3U_sEy5LjzwLm9KfADCXtBlbw8A,9
60
- PyPlumIO-0.5.34.dist-info/RECORD,,
56
+ PyPlumIO-0.5.35.dist-info/LICENSE,sha256=m-UuZFjXJ22uPTGm9kSHS8bqjsf5T8k2wL9bJn1Y04o,1088
57
+ PyPlumIO-0.5.35.dist-info/METADATA,sha256=4QXHmKbKDme-A4wWibnMQdeopxLDsZtKHswzhoChzZ0,5510
58
+ PyPlumIO-0.5.35.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
59
+ PyPlumIO-0.5.35.dist-info/top_level.txt,sha256=kNBz9UPPkPD9teDn3U_sEy5LjzwLm9KfADCXtBlbw8A,9
60
+ PyPlumIO-0.5.35.dist-info/RECORD,,
pyplumio/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.5.34'
16
- __version_tuple__ = version_tuple = (0, 5, 34)
15
+ __version__ = version = '0.5.35'
16
+ __version_tuple__ = version_tuple = (0, 5, 35)
@@ -9,7 +9,7 @@ import logging
9
9
  from typing import Any, ClassVar
10
10
 
11
11
  from pyplumio.const import ATTR_FRAME_ERRORS, ATTR_LOADED, DeviceType, FrameType
12
- from pyplumio.exceptions import UnknownDeviceError
12
+ from pyplumio.exceptions import RequestError, UnknownDeviceError
13
13
  from pyplumio.frames import DataFrameDescription, Frame, Request, is_known_frame_type
14
14
  from pyplumio.helpers.event_manager import EventManager
15
15
  from pyplumio.helpers.factory import create_instance
@@ -180,7 +180,7 @@ class PhysicalDevice(Device, ABC):
180
180
  )
181
181
 
182
182
  errors = [
183
- result.args[1] for result in results if isinstance(result, BaseException)
183
+ result.args[1] for result in results if isinstance(result, RequestError)
184
184
  ]
185
185
 
186
186
  await asyncio.gather(
@@ -203,9 +203,10 @@ class PhysicalDevice(Device, ABC):
203
203
  except asyncio.TimeoutError:
204
204
  retries -= 1
205
205
 
206
- raise ValueError(
206
+ raise RequestError(
207
207
  f"Failed to request parameter '{name}' with frame type '{frame_type}' "
208
- f"after {retries} retries."
208
+ f"after {retries} retries.",
209
+ frame_type,
209
210
  )
210
211
 
211
212
  @classmethod
pyplumio/exceptions.py CHANGED
@@ -15,6 +15,10 @@ class ProtocolError(PyPlumIOError):
15
15
  """Base class for protocol-related errors."""
16
16
 
17
17
 
18
+ class RequestError(PyPlumIOError):
19
+ """Raised on request error."""
20
+
21
+
18
22
  class ReadError(ProtocolError):
19
23
  """Raised on read error."""
20
24
 
@@ -217,7 +217,7 @@ class Parameter(ABC):
217
217
  while self.pending_update:
218
218
  if retries <= 0:
219
219
  _LOGGER.warning(
220
- "Failed to set parameter '%s' after %d retries",
220
+ "Unable to confirm that parameter '%s' was set after %d retries",
221
221
  self.description.name,
222
222
  retries,
223
223
  )