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.
Files changed (38) hide show
  1. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/PKG-INFO +1 -1
  2. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/__init__.py +1 -1
  3. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/cover.py +14 -2
  4. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/PKG-INFO +1 -1
  5. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/setup.cfg +1 -1
  6. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/setup.py +1 -1
  7. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/CONTRIBUTING.rst +0 -0
  8. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/HISTORY.rst +0 -0
  9. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/LICENSE +0 -0
  10. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/MANIFEST.in +0 -0
  11. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/README.rst +0 -0
  12. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/binary_sensor.py +0 -0
  13. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/box.py +0 -0
  14. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/box_types.py +0 -0
  15. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/button.py +0 -0
  16. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/climate.py +0 -0
  17. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/error.py +0 -0
  18. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/feature.py +0 -0
  19. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/jfollow.py +0 -0
  20. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/light.py +0 -0
  21. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/sensor.py +0 -0
  22. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/session.py +0 -0
  23. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi/switch.py +0 -0
  24. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/SOURCES.txt +0 -0
  25. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/dependency_links.txt +0 -0
  26. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/not-zip-safe +0 -0
  27. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/requires.txt +0 -0
  28. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/blebox_uniapi.egg-info/top_level.txt +0 -0
  29. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/Makefile +0 -0
  30. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/authors.rst +0 -0
  31. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/conf.py +0 -0
  32. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/contributing.rst +0 -0
  33. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/history.rst +0 -0
  34. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/index.rst +0 -0
  35. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/installation.rst +0 -0
  36. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/make.bat +0 -0
  37. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/readme.rst +0 -0
  38. {blebox_uniapi-2.5.1 → blebox_uniapi-2.5.2}/docs/usage.rst +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: blebox_uniapi
3
- Version: 2.5.1
3
+ Version: 2.5.2
4
4
  Summary: Python API for accessing BleBox smart home devices
5
5
  Home-page: https://github.com/blebox/blebox_uniapi
6
6
  Author: BleBox
@@ -2,4 +2,4 @@
2
2
 
3
3
  __author__ = """BleBox"""
4
4
  __email__ = "opensource@blebox.eu"
5
- __version__ = "2.5.1"
5
+ __version__ = "2.5.2"
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: blebox-uniapi
3
- Version: 2.5.1
3
+ Version: 2.5.2
4
4
  Summary: Python API for accessing BleBox smart home devices
5
5
  Home-page: https://github.com/blebox/blebox_uniapi
6
6
  Author: BleBox
@@ -1,5 +1,5 @@
1
1
  [bumpversion]
2
- current_version = 2.5.1
2
+ current_version = 2.5.2
3
3
  commit = True
4
4
  tag = True
5
5
 
@@ -23,7 +23,7 @@ test_requirements = [
23
23
  ]
24
24
 
25
25
  setup(
26
- version="2.5.1",
26
+ version="2.5.2",
27
27
  author="BleBox",
28
28
  author_email="opensource@blebox.eu",
29
29
  python_requires=">=3.9",
File without changes
File without changes
File without changes
File without changes