zcc-helper 3.6.dev19__tar.gz → 3.6.dev20__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.dev19/zcc_helper.egg-info → zcc_helper-3.6.dev20}/PKG-INFO +1 -1
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/constants.py +1 -1
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/device.py +10 -4
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20/zcc_helper.egg-info}/PKG-INFO +1 -1
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/LICENSE.txt +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/README.md +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/setup.cfg +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/setup.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/tests/test_device.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/__init__.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/__main__.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/controller.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/description.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/discovery.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/errors.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/manufacture_info.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/protocol.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/socket.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/trace.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc/watchdog.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc.py +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc_helper.egg-info/SOURCES.txt +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc_helper.egg-info/dependency_links.txt +0 -0
- {zcc_helper-3.6.dev19 → zcc_helper-3.6.dev20}/zcc_helper.egg-info/top_level.txt +0 -0
|
@@ -170,9 +170,12 @@ class ControlPointDevice:
|
|
|
170
170
|
@property
|
|
171
171
|
def is_closing(self) -> bool:
|
|
172
172
|
"""Returns True if door is closing."""
|
|
173
|
-
if abs(self.percentage - self._target_percentage) <= OPEN_AND_CLOSE_TOLERANCE:
|
|
174
|
-
return False
|
|
175
173
|
if self.percentage and self._target_percentage:
|
|
174
|
+
if (
|
|
175
|
+
abs(self.percentage - self._target_percentage)
|
|
176
|
+
<= OPEN_AND_CLOSE_TOLERANCE
|
|
177
|
+
):
|
|
178
|
+
return False
|
|
176
179
|
return self.percentage > self._target_percentage and not self.is_closed
|
|
177
180
|
return False
|
|
178
181
|
|
|
@@ -214,9 +217,12 @@ class ControlPointDevice:
|
|
|
214
217
|
@property
|
|
215
218
|
def is_opening(self) -> bool:
|
|
216
219
|
"""Returns True if door is opening and is NOT already open."""
|
|
217
|
-
if abs(self.percentage - self._target_percentage) <= OPEN_AND_CLOSE_TOLERANCE:
|
|
218
|
-
return False
|
|
219
220
|
if self.percentage and self._target_percentage:
|
|
221
|
+
if (
|
|
222
|
+
abs(self.percentage - self._target_percentage)
|
|
223
|
+
<= OPEN_AND_CLOSE_TOLERANCE
|
|
224
|
+
):
|
|
225
|
+
return False
|
|
220
226
|
return self.percentage < self._target_percentage and not self.is_open
|
|
221
227
|
return False
|
|
222
228
|
|
|
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
|