blebox-uniapi 2.5.1__tar.gz → 2.5.2__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.
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/PKG-INFO +1 -1
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/__init__.py +1 -1
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/cover.py +14 -2
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/PKG-INFO +1 -1
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/setup.cfg +1 -1
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/setup.py +1 -1
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/CONTRIBUTING.rst +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/HISTORY.rst +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/LICENSE +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/MANIFEST.in +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/README.rst +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/binary_sensor.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/box.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/box_types.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/button.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/climate.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/error.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/feature.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/jfollow.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/light.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/sensor.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/session.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/switch.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/SOURCES.txt +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/dependency_links.txt +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/not-zip-safe +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/requires.txt +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/top_level.txt +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/Makefile +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/authors.rst +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/conf.py +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/contributing.rst +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/history.rst +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/index.rst +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/installation.rst +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/make.bat +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/readme.rst +0 -0
- {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/usage.rst +0 -0
|
@@ -118,6 +118,11 @@ class Gate:
|
|
|
118
118
|
def min_position(self) -> int:
|
|
119
119
|
return 0
|
|
120
120
|
|
|
121
|
+
@property
|
|
122
|
+
def is_position_inverted(self) -> bool:
|
|
123
|
+
# shutterBox/gateController: % closed (0=open, 100=closed), inverted vs HA convention
|
|
124
|
+
return True
|
|
125
|
+
|
|
121
126
|
@property
|
|
122
127
|
def is_slider(self) -> bool:
|
|
123
128
|
return True
|
|
@@ -176,6 +181,11 @@ class Shutter(Gate):
|
|
|
176
181
|
class GateBox(Gate):
|
|
177
182
|
_control_type: Optional[GateBoxControlType]
|
|
178
183
|
|
|
184
|
+
@property
|
|
185
|
+
def is_position_inverted(self) -> bool:
|
|
186
|
+
# gateBox: (0=closed, 100=open), matches HA convention
|
|
187
|
+
return False
|
|
188
|
+
|
|
179
189
|
@property
|
|
180
190
|
def is_slider(self) -> bool:
|
|
181
191
|
return False
|
|
@@ -189,8 +199,6 @@ class GateBox(Gate):
|
|
|
189
199
|
return "primary"
|
|
190
200
|
|
|
191
201
|
def read_state(self, alias: str, raw_value: Any, product: "Box") -> int:
|
|
192
|
-
# Reinterpret state to match shutterBox
|
|
193
|
-
# NOTE: shutterBox is inverted (0 == closed), gateBox isn't
|
|
194
202
|
current = raw_value("position")
|
|
195
203
|
desired = raw_value("desired")
|
|
196
204
|
|
|
@@ -329,6 +337,10 @@ class Cover(Feature):
|
|
|
329
337
|
def has_tilt(self) -> bool:
|
|
330
338
|
return self._attributes.has_tilt
|
|
331
339
|
|
|
340
|
+
@property
|
|
341
|
+
def is_position_inverted(self) -> bool:
|
|
342
|
+
return self._attributes.is_position_inverted
|
|
343
|
+
|
|
332
344
|
@property
|
|
333
345
|
def has_stop(self) -> bool:
|
|
334
346
|
return self._has_stop
|
|
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
|
|
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
|