python-izone 1.2.10__py3-none-any.whl → 1.3.0__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.
pizone/__init__.py CHANGED
@@ -1,15 +1,24 @@
1
- """Interface to the iZone airconditioner controller
1
+ """Interface to the iZone air conditioner controller.
2
2
 
3
- Interaction mostly through the Controller and Zone classes.
3
+ Interaction is mostly through the :class:`~pizone.controller.Controller` and
4
+ :class:`~pizone.zone.Zone` classes.
5
+
6
+ Synchronous property reads return cached device data and do not raise
7
+ :exc:`ConnectionError`. Async command and refresh methods perform HTTP I/O and
8
+ raise :exc:`ConnectionError` when the device cannot be reached. They raise
9
+ :exc:`~pizone.exceptions.ControllerCommandError` when the device responds but
10
+ rejects the request (``{ERROR...}`` body or HTTP 4xx).
4
11
  """
5
12
 
6
13
  from .controller import Controller
7
14
  from .discovery import DiscoveryService, Listener, discovery
15
+ from .exceptions import ControllerCommandError
8
16
  from .power import BatteryLevel, Power, PowerChannel, PowerDevice, PowerGroup
9
17
  from .zone import Zone
10
18
 
11
19
  __all__ = [
12
20
  "Controller",
21
+ "ControllerCommandError",
13
22
  "Zone",
14
23
  "DiscoveryService",
15
24
  "Listener",