python-izone 1.2.9__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 +24 -15
- pizone/controller.py +344 -219
- pizone/discovery.py +296 -215
- pizone/exceptions.py +10 -0
- pizone/power.py +102 -68
- pizone/py.typed +0 -0
- pizone/version.py +23 -4
- pizone/zone.py +92 -63
- python_izone-1.3.0.dist-info/METADATA +79 -0
- python_izone-1.3.0.dist-info/RECORD +12 -0
- {python_izone-1.2.9.dist-info → python_izone-1.3.0.dist-info}/WHEEL +1 -2
- python_izone-1.2.9.dist-info/METADATA +0 -40
- python_izone-1.2.9.dist-info/RECORD +0 -11
- python_izone-1.2.9.dist-info/top_level.txt +0 -1
- {python_izone-1.2.9.dist-info → python_izone-1.3.0.dist-info/licenses}/licence.txt +0 -0
pizone/__init__.py
CHANGED
|
@@ -1,22 +1,31 @@
|
|
|
1
|
-
"""Interface to the iZone
|
|
1
|
+
"""Interface to the iZone air conditioner controller.
|
|
2
2
|
|
|
3
|
-
Interaction mostly through the Controller and
|
|
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
|
-
from .power import Power, PowerGroup, PowerDevice, PowerChannel, BatteryLevel
|
|
7
|
-
from .zone import Zone
|
|
8
13
|
from .controller import Controller
|
|
9
14
|
from .discovery import DiscoveryService, Listener, discovery
|
|
15
|
+
from .exceptions import ControllerCommandError
|
|
16
|
+
from .power import BatteryLevel, Power, PowerChannel, PowerDevice, PowerGroup
|
|
17
|
+
from .zone import Zone
|
|
10
18
|
|
|
11
|
-
|
|
12
|
-
Controller,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
__all__ = [
|
|
20
|
+
"Controller",
|
|
21
|
+
"ControllerCommandError",
|
|
22
|
+
"Zone",
|
|
23
|
+
"DiscoveryService",
|
|
24
|
+
"Listener",
|
|
25
|
+
"discovery",
|
|
26
|
+
"Power",
|
|
27
|
+
"PowerGroup",
|
|
28
|
+
"PowerDevice",
|
|
29
|
+
"PowerChannel",
|
|
30
|
+
"BatteryLevel",
|
|
22
31
|
]
|