pysmarlaapi 0.5.0__tar.gz → 0.5.1__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.

Potentially problematic release.


This version of pysmarlaapi might be problematic. Click here for more details.

Files changed (25) hide show
  1. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/PKG-INFO +1 -1
  2. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/__init__.py +1 -1
  3. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/federwiege/__init__.py +1 -1
  4. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/federwiege/classes/property.py +1 -1
  5. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/federwiege/services/babywiege_service.py +3 -3
  6. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/.gitignore +0 -0
  7. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/.pre-commit-config.yaml +0 -0
  8. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/.pypirc +0 -0
  9. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/.vscode/launch.json +0 -0
  10. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/.vscode/settings.json +0 -0
  11. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/LICENSE +0 -0
  12. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/README.md +0 -0
  13. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pyproject.toml +0 -0
  14. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/classes/__init__.py +0 -0
  15. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/classes/auth_token.py +0 -0
  16. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/classes/connection.py +0 -0
  17. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/connection_hub/__init__.py +0 -0
  18. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/federwiege/classes/__init__.py +0 -0
  19. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/federwiege/classes/service.py +0 -0
  20. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/federwiege/services/__init__.py +0 -0
  21. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/federwiege/services/analyser_service.py +0 -0
  22. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/pysmarlaapi/federwiege/services/info_service.py +0 -0
  23. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/requirements.txt +0 -0
  24. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/requirements_dev.txt +0 -0
  25. {pysmarlaapi-0.5.0 → pysmarlaapi-0.5.1}/tests/test.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pysmarlaapi
3
- Version: 0.5.0
3
+ Version: 0.5.1
4
4
  Summary: Swing2Sleep Smarla API
5
5
  Author-email: Robin Lintermann <robin.lintermann@explicatis.com>
6
6
  Requires-Python: >=3.11
@@ -1,4 +1,4 @@
1
- __version__ = "0.5.0"
1
+ __version__ = "0.5.1"
2
2
 
3
3
  from .classes import Connection
4
4
  from .federwiege import Federwiege
@@ -36,7 +36,7 @@ class Federwiege:
36
36
 
37
37
  self.available = False
38
38
 
39
- def get_service(self, service):
39
+ def get_service(self, service: str):
40
40
  if service not in self.services:
41
41
  return None
42
42
  return self.services[service]
@@ -36,7 +36,7 @@ class Property(Generic[_VT]):
36
36
  else:
37
37
  self.value = new_value
38
38
 
39
- def push(self):
39
+ def push(self, value: _VT):
40
40
  pass
41
41
 
42
42
  def pull(self):
@@ -25,7 +25,7 @@ class SwingActiveProperty(Property[bool]):
25
25
  def pull(self):
26
26
  self.hub.send_serialized_data("GetSwingActive")
27
27
 
28
- def push(self, value):
28
+ def push(self, value: bool):
29
29
  self.hub.send_serialized_data("SetSwingActive", value)
30
30
 
31
31
  def register(self):
@@ -46,7 +46,7 @@ class IntensityProperty(Property[int]):
46
46
  def pull(self):
47
47
  self.hub.send_serialized_data("GetIntensity")
48
48
 
49
- def push(self, value):
49
+ def push(self, value: int):
50
50
  self.hub.send_serialized_data("SetIntensity", value)
51
51
 
52
52
  def register(self):
@@ -67,7 +67,7 @@ class SmartModeProperty(Property[bool]):
67
67
  def pull(self):
68
68
  self.hub.send_serialized_data("GetSmartMode")
69
69
 
70
- def push(self, value):
70
+ def push(self, value: bool):
71
71
  self.hub.send_serialized_data("SetSmartMode", value)
72
72
 
73
73
  def register(self):
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes