pysmarlaapi 0.4.6__py3-none-any.whl → 0.5.1__py3-none-any.whl

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.

pysmarlaapi/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "0.4.6"
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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pysmarlaapi
3
- Version: 0.4.6
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,17 +1,17 @@
1
- pysmarlaapi/__init__.py,sha256=EdAN-seyIoUuSAB8nQRbSCY2wUwiLlUytqxfq1y-FxU,94
1
+ pysmarlaapi/__init__.py,sha256=zBe0xIEbVSHU5H5rYWtcUOtqtKBXzW-SI7cFayS1uMo,94
2
2
  pysmarlaapi/classes/__init__.py,sha256=4F4LRzLQtj6AmzrXn74iHEZl-YElpMkb7MhEGkab504,71
3
3
  pysmarlaapi/classes/auth_token.py,sha256=bxpp0gDzWuLzNSgUksN4mMlyvkDWLhqs3fT76Mb-0c8,950
4
4
  pysmarlaapi/classes/connection.py,sha256=tmMaPEN1lu8fC8cV-SX6l4aVUkaAOh-32aZUhR7nMSU,1403
5
5
  pysmarlaapi/connection_hub/__init__.py,sha256=6bLOH7cY_AyZwsMLKlFEA-kwmhKCI4pb0aLrflgfWdQ,4600
6
- pysmarlaapi/federwiege/__init__.py,sha256=uFExZeBgoKfmfE7YZ20V_AynZzN61ZrH2DdztGOhjq8,1800
6
+ pysmarlaapi/federwiege/__init__.py,sha256=mR9kZoKDZQ9OjXkhWuHjsrp43qVGAAZ6rlFN9mICNdY,1805
7
7
  pysmarlaapi/federwiege/classes/__init__.py,sha256=1cCe3iToaNmbUfy_7PynoPenNHtVcKC03rFc4ADqnbE,62
8
- pysmarlaapi/federwiege/classes/property.py,sha256=7CmNN-vQ-6BBYDvp9I7Md15S-LvADlAGpZr4HXlW14U,1062
8
+ pysmarlaapi/federwiege/classes/property.py,sha256=XOzmym8i1RTwC7Geoyan09Cty83CFWqJmG67PN8UGJ8,1074
9
9
  pysmarlaapi/federwiege/classes/service.py,sha256=Um2EQYtHdPvUGn4Q9cZM45yciSFBMNYL6Nyf5ln2WMc,660
10
10
  pysmarlaapi/federwiege/services/__init__.py,sha256=20A54vK90HAmAF3VvXSAaHSujCVr0o6xqT6YG2G582c,135
11
11
  pysmarlaapi/federwiege/services/analyser_service.py,sha256=PJmPqEIytrb9RUyuHDm5ShvpyrmiAXWO0LfINku_NVE,1854
12
- pysmarlaapi/federwiege/services/babywiege_service.py,sha256=Uup7oU_GUImNAOojbRMbKdROZ2X9Vmu7Eqq43ZdcXbA,2127
12
+ pysmarlaapi/federwiege/services/babywiege_service.py,sha256=Qnmq927Ge4aCHROKv0-CztN8_Hyf5IU1aV3HG83XcSE,2144
13
13
  pysmarlaapi/federwiege/services/info_service.py,sha256=dfODCRBK3Vinme73IlmjSqsvwfPrXeqDz_EEA9cWnhk,1294
14
- pysmarlaapi-0.4.6.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
15
- pysmarlaapi-0.4.6.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
16
- pysmarlaapi-0.4.6.dist-info/METADATA,sha256=MSySU9CQWHJE84uLcnSXJ_vVzuIwmskzEbbyNUltYks,1138
17
- pysmarlaapi-0.4.6.dist-info/RECORD,,
14
+ pysmarlaapi-0.5.1.dist-info/licenses/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
15
+ pysmarlaapi-0.5.1.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
16
+ pysmarlaapi-0.5.1.dist-info/METADATA,sha256=h1us-xWGIA6DB_dV5PBnGoBKng_JJ3QtfFadLgdw2Xc,1138
17
+ pysmarlaapi-0.5.1.dist-info/RECORD,,