zcc-helper 3.4.2.dev1__tar.gz → 3.5.dev1__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.
- {zcc_helper-3.4.2.dev1/zcc_helper.egg-info → zcc_helper-3.5.dev1}/PKG-INFO +1 -1
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/constants.py +1 -1
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/controller.py +5 -4
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1/zcc_helper.egg-info}/PKG-INFO +1 -1
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/LICENSE.txt +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/README.md +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/setup.cfg +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/setup.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/tests/test_controller.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/tests/test_device.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/tests/test_server.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/tests/test_socket.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/__init__.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/__main__.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/description.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/device.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/discovery.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/errors.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/manufacture_info.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/protocol.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/socket.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/trace.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc/watchdog.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc.py +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc_helper.egg-info/SOURCES.txt +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc_helper.egg-info/dependency_links.txt +0 -0
- {zcc_helper-3.4.2.dev1 → zcc_helper-3.5.dev1}/zcc_helper.egg-info/top_level.txt +0 -0
|
@@ -107,9 +107,7 @@ class ControlPoint:
|
|
|
107
107
|
"""Return an array with all lights (i.e. switch or dimmer type)"""
|
|
108
108
|
return list(
|
|
109
109
|
filter(
|
|
110
|
-
lambda device: device.type == "light"
|
|
111
|
-
or device.type == "switch"
|
|
112
|
-
or device.type == "dimmer",
|
|
110
|
+
lambda device: device.type == "light" or device.type == "dimmer",
|
|
113
111
|
self.devices.values(),
|
|
114
112
|
)
|
|
115
113
|
)
|
|
@@ -118,7 +116,10 @@ class ControlPoint:
|
|
|
118
116
|
def outlets(self) -> List[ControlPointDevice]:
|
|
119
117
|
"""Return an array with all outlets"""
|
|
120
118
|
return list(
|
|
121
|
-
filter(
|
|
119
|
+
filter(
|
|
120
|
+
lambda device: device.type == "outlet" or device.type == "switch",
|
|
121
|
+
self.devices.values(),
|
|
122
|
+
)
|
|
122
123
|
)
|
|
123
124
|
|
|
124
125
|
@property
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|