pysmarlaapi 0.8.0__tar.gz → 0.8.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.
Potentially problematic release.
This version of pysmarlaapi might be problematic. Click here for more details.
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/PKG-INFO +2 -2
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pyproject.toml +1 -1
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/__init__.py +1 -1
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/federwiege/classes/property.py +2 -2
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/federwiege/services/analyser_service.py +3 -3
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/federwiege/services/babywiege_service.py +3 -3
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/federwiege/services/info_service.py +2 -2
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/LICENSE +0 -0
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/README.md +0 -0
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/classes/__init__.py +0 -0
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/classes/auth_token.py +0 -0
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/classes/connection.py +0 -0
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/connection_hub/__init__.py +0 -0
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/federwiege/__init__.py +0 -0
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/federwiege/classes/__init__.py +0 -0
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/federwiege/classes/service.py +0 -0
- {pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/federwiege/services/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pysmarlaapi
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.2
|
|
4
4
|
Summary: Swing2Sleep Smarla API
|
|
5
5
|
Author-email: Robin Lintermann <robin.lintermann@explicatis.com>
|
|
6
6
|
Requires-Python: >=3.11
|
|
@@ -11,7 +11,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
13
13
|
License-File: LICENSE
|
|
14
|
-
Requires-Dist: aiohttp~=3.11
|
|
14
|
+
Requires-Dist: aiohttp~=3.11
|
|
15
15
|
Requires-Dist: jsonpickle~=4.0.0
|
|
16
16
|
Requires-Dist: pysignalr~=1.1.0
|
|
17
17
|
Project-URL: Issues, https://github.com/Explicatis-GmbH/pysmarlaapi/issues
|
|
@@ -22,10 +22,10 @@ class Property(Generic[_VT]):
|
|
|
22
22
|
async with self.lock:
|
|
23
23
|
self.listeners.remove(listener)
|
|
24
24
|
|
|
25
|
-
async def notify_listeners(self
|
|
25
|
+
async def notify_listeners(self):
|
|
26
26
|
async with self.lock:
|
|
27
27
|
for listener in self.listeners:
|
|
28
|
-
await listener(value)
|
|
28
|
+
await listener(self.value)
|
|
29
29
|
|
|
30
30
|
def get(self) -> _VT:
|
|
31
31
|
return self.value
|
|
@@ -16,7 +16,7 @@ class OscillationProperty(Property[list[int]]):
|
|
|
16
16
|
async def on_callback(self, args):
|
|
17
17
|
value = args[0]["value"]
|
|
18
18
|
self.set(value, push=False)
|
|
19
|
-
await self.notify_listeners(
|
|
19
|
+
await self.notify_listeners()
|
|
20
20
|
|
|
21
21
|
def __init__(self, hub: ConnectionHub):
|
|
22
22
|
super().__init__(hub, [0, 0])
|
|
@@ -33,7 +33,7 @@ class ActivityProperty(Property[int]):
|
|
|
33
33
|
async def on_callback(self, args):
|
|
34
34
|
value = args[0]["value"]
|
|
35
35
|
self.set(value, push=False)
|
|
36
|
-
await self.notify_listeners(
|
|
36
|
+
await self.notify_listeners()
|
|
37
37
|
|
|
38
38
|
def __init__(self, hub: ConnectionHub):
|
|
39
39
|
super().__init__(hub, 0)
|
|
@@ -50,7 +50,7 @@ class SwingCountProperty(Property[int]):
|
|
|
50
50
|
async def on_callback(self, args):
|
|
51
51
|
value = args[0]["value"]
|
|
52
52
|
self.set(value, push=False)
|
|
53
|
-
await self.notify_listeners(
|
|
53
|
+
await self.notify_listeners()
|
|
54
54
|
|
|
55
55
|
def __init__(self, hub: ConnectionHub):
|
|
56
56
|
super().__init__(hub, 0)
|
{pysmarlaapi-0.8.0 → pysmarlaapi-0.8.2}/pysmarlaapi/federwiege/services/babywiege_service.py
RENAMED
|
@@ -16,7 +16,7 @@ class SwingActiveProperty(Property[bool]):
|
|
|
16
16
|
async def on_callback(self, args):
|
|
17
17
|
value = args[0]["value"]
|
|
18
18
|
self.set(value, push=False)
|
|
19
|
-
await self.notify_listeners(
|
|
19
|
+
await self.notify_listeners()
|
|
20
20
|
|
|
21
21
|
def __init__(self, hub: ConnectionHub):
|
|
22
22
|
super().__init__(hub, False)
|
|
@@ -36,7 +36,7 @@ class IntensityProperty(Property[int]):
|
|
|
36
36
|
async def on_callback(self, args):
|
|
37
37
|
value = args[0]["value"]
|
|
38
38
|
self.set(value, push=False)
|
|
39
|
-
await self.notify_listeners(
|
|
39
|
+
await self.notify_listeners()
|
|
40
40
|
|
|
41
41
|
def __init__(self, hub: ConnectionHub):
|
|
42
42
|
super().__init__(hub, 0)
|
|
@@ -56,7 +56,7 @@ class SmartModeProperty(Property[bool]):
|
|
|
56
56
|
async def on_callback(self, args):
|
|
57
57
|
value = args[0]["value"]
|
|
58
58
|
self.set(value, push=False)
|
|
59
|
-
await self.notify_listeners(
|
|
59
|
+
await self.notify_listeners()
|
|
60
60
|
|
|
61
61
|
def __init__(self, hub: ConnectionHub):
|
|
62
62
|
super().__init__(hub, False)
|
|
@@ -15,7 +15,7 @@ class DisplayNameProperty(Property[str]):
|
|
|
15
15
|
async def on_callback(self, args):
|
|
16
16
|
value = args[0]["value"]
|
|
17
17
|
self.set(value, push=False)
|
|
18
|
-
await self.notify_listeners(
|
|
18
|
+
await self.notify_listeners()
|
|
19
19
|
|
|
20
20
|
def __init__(self, hub: ConnectionHub):
|
|
21
21
|
super().__init__(hub, "Smarla")
|
|
@@ -32,7 +32,7 @@ class VersionProperty(Property[str]):
|
|
|
32
32
|
async def on_callback(self, args):
|
|
33
33
|
value = args[0]["value"]
|
|
34
34
|
self.set(value, push=False)
|
|
35
|
-
await self.notify_listeners(
|
|
35
|
+
await self.notify_listeners()
|
|
36
36
|
|
|
37
37
|
def __init__(self, hub: ConnectionHub):
|
|
38
38
|
super().__init__(hub, "1.0.0")
|
|
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
|