pytouchlinesl 0.1.4__tar.gz → 0.1.5__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.
- {pytouchlinesl-0.1.4/pytouchlinesl.egg-info → pytouchlinesl-0.1.5}/PKG-INFO +1 -1
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pyproject.toml +1 -1
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/client/base.py +1 -1
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/client/client.py +2 -2
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/touchlinesl.py +1 -1
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5/pytouchlinesl.egg-info}/PKG-INFO +1 -1
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/LICENSE +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/README.md +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/__init__.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/client/__init__.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/client/models/__init__.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/client/models/models.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/module.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/zone.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl.egg-info/SOURCES.txt +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl.egg-info/dependency_links.txt +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl.egg-info/requires.txt +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl.egg-info/top_level.txt +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/setup.cfg +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/tests/test_module.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/tests/test_touchlinesl.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/tests/test_zone.py +0 -0
|
@@ -73,12 +73,12 @@ class RothAPI(BaseClient):
|
|
|
73
73
|
self._user_id = resp.get("user_id")
|
|
74
74
|
self._token = resp.get("token")
|
|
75
75
|
|
|
76
|
-
async def user_id(self) ->
|
|
76
|
+
async def user_id(self) -> int:
|
|
77
77
|
"""Return the unique user id for the authenticated account."""
|
|
78
78
|
if self._token is None:
|
|
79
79
|
await self._login()
|
|
80
80
|
|
|
81
|
-
assert isinstance(self._user_id,
|
|
81
|
+
assert isinstance(self._user_id, int)
|
|
82
82
|
return self._user_id
|
|
83
83
|
|
|
84
84
|
async def authenticated(self) -> bool:
|
|
@@ -52,7 +52,7 @@ class TouchlineSL:
|
|
|
52
52
|
raise TypeError("username and password must be strings if no client is provided")
|
|
53
53
|
self._client = RothAPI(username=username, password=password)
|
|
54
54
|
|
|
55
|
-
async def user_id(self) ->
|
|
55
|
+
async def user_id(self) -> int:
|
|
56
56
|
"""Return the unique user ID of the authenticated account."""
|
|
57
57
|
return await self._client.user_id()
|
|
58
58
|
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|