zcc-helper 3.6.dev17__tar.gz → 3.6.dev18__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.6.dev17/zcc_helper.egg-info → zcc_helper-3.6.dev18}/PKG-INFO +1 -1
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/constants.py +1 -1
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/device.py +9 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18/zcc_helper.egg-info}/PKG-INFO +1 -1
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/LICENSE.txt +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/README.md +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/setup.cfg +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/setup.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/tests/test_device.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/__init__.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/__main__.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/controller.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/description.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/discovery.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/errors.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/manufacture_info.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/protocol.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/socket.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/trace.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/watchdog.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc.py +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc_helper.egg-info/SOURCES.txt +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc_helper.egg-info/dependency_links.txt +0 -0
- {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc_helper.egg-info/top_level.txt +0 -0
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
from __future__ import annotations
|
|
6
6
|
|
|
7
|
+
import asyncio
|
|
8
|
+
|
|
7
9
|
from pprint import pformat
|
|
8
10
|
|
|
9
11
|
from zcc.errors import ControlPointError
|
|
@@ -261,6 +263,13 @@ class ControlPointDevice:
|
|
|
261
263
|
await self.__action(
|
|
262
264
|
"OpenToPercentage", params={"openpercentage": int(percentage)}
|
|
263
265
|
)
|
|
266
|
+
if OPEN_AND_CLOSE_WORKAROUND:
|
|
267
|
+
wait_time = 10
|
|
268
|
+
while self.percentage != percentage:
|
|
269
|
+
await asyncio.sleep(1)
|
|
270
|
+
wait_time -= 1
|
|
271
|
+
if wait_time <= 0:
|
|
272
|
+
break
|
|
264
273
|
|
|
265
274
|
@property
|
|
266
275
|
def percentage(self) -> int | None:
|
|
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
|