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.
Files changed (24) hide show
  1. {zcc_helper-3.6.dev17/zcc_helper.egg-info → zcc_helper-3.6.dev18}/PKG-INFO +1 -1
  2. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/constants.py +1 -1
  3. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/device.py +9 -0
  4. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18/zcc_helper.egg-info}/PKG-INFO +1 -1
  5. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/LICENSE.txt +0 -0
  6. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/README.md +0 -0
  7. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/setup.cfg +0 -0
  8. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/setup.py +0 -0
  9. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/tests/test_device.py +0 -0
  10. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/__init__.py +0 -0
  11. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/__main__.py +0 -0
  12. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/controller.py +0 -0
  13. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/description.py +0 -0
  14. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/discovery.py +0 -0
  15. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/errors.py +0 -0
  16. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/manufacture_info.py +0 -0
  17. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/protocol.py +0 -0
  18. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/socket.py +0 -0
  19. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/trace.py +0 -0
  20. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc/watchdog.py +0 -0
  21. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc.py +0 -0
  22. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc_helper.egg-info/SOURCES.txt +0 -0
  23. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc_helper.egg-info/dependency_links.txt +0 -0
  24. {zcc_helper-3.6.dev17 → zcc_helper-3.6.dev18}/zcc_helper.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zcc_helper
3
- Version: 3.6.dev17
3
+ Version: 3.6.dev18
4
4
  Summary: ZIMI ZCC helper module
5
5
  Author: Mark Hannon
6
6
  Author-email: mark.hannon@gmail.com
@@ -9,4 +9,4 @@ APP_ID = "ZvWqWJQB"
9
9
  APP_TOKEN = "3422ecbb-cf6a-404c-b3dc-2023dd213535"
10
10
 
11
11
  NAME = "zcc_helper"
12
- VERSION = "3.6dev17"
12
+ VERSION = "3.6dev18"
@@ -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:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: zcc_helper
3
- Version: 3.6.dev17
3
+ Version: 3.6.dev18
4
4
  Summary: ZIMI ZCC helper module
5
5
  Author: Mark Hannon
6
6
  Author-email: mark.hannon@gmail.com
File without changes
File without changes
File without changes
File without changes