pysmarlaapi 0.6.1__tar.gz → 0.7.0__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.
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/PKG-INFO +1 -1
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/__init__.py +1 -1
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/federwiege/__init__.py +9 -3
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/LICENSE +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/README.md +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pyproject.toml +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/classes/__init__.py +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/classes/auth_token.py +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/classes/connection.py +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/connection_hub/__init__.py +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/federwiege/classes/__init__.py +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/federwiege/classes/property.py +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/federwiege/classes/service.py +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/federwiege/services/__init__.py +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/federwiege/services/analyser_service.py +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/federwiege/services/babywiege_service.py +0 -0
- {pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/federwiege/services/info_service.py +0 -0
|
@@ -36,10 +36,16 @@ class Federwiege:
|
|
|
36
36
|
|
|
37
37
|
self.available = False
|
|
38
38
|
|
|
39
|
-
def get_service(self,
|
|
40
|
-
if
|
|
39
|
+
def get_service(self, key: str):
|
|
40
|
+
if key not in self.services:
|
|
41
41
|
return None
|
|
42
|
-
return self.services[
|
|
42
|
+
return self.services[key]
|
|
43
|
+
|
|
44
|
+
def get_property(self, service_key: str, prop_key: str):
|
|
45
|
+
service = self.get_service(service_key)
|
|
46
|
+
if not service:
|
|
47
|
+
return None
|
|
48
|
+
return service.get_property(prop_key)
|
|
43
49
|
|
|
44
50
|
def connect(self):
|
|
45
51
|
with self._lock:
|
|
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
|
{pysmarlaapi-0.6.1 → pysmarlaapi-0.7.0}/pysmarlaapi/federwiege/services/babywiege_service.py
RENAMED
|
File without changes
|
|
File without changes
|