pytouchlinesl 0.1.4__tar.gz → 0.1.6__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.6}/PKG-INFO +1 -1
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pyproject.toml +1 -1
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl/client/base.py +1 -1
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl/client/client.py +2 -2
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl/client/models/models.py +6 -6
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl/touchlinesl.py +1 -1
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6/pytouchlinesl.egg-info}/PKG-INFO +1 -1
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/LICENSE +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/README.md +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl/__init__.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl/client/__init__.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl/client/models/__init__.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl/module.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl/zone.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl.egg-info/SOURCES.txt +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl.egg-info/dependency_links.txt +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl.egg-info/requires.txt +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/pytouchlinesl.egg-info/top_level.txt +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/setup.cfg +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/tests/test_module.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/tests/test_touchlinesl.py +0 -0
- {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.6}/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:
|
|
@@ -127,10 +127,10 @@ class ZonesModel(BaseModel):
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
class ParamsModel(BaseModel):
|
|
130
|
-
description: str
|
|
130
|
+
description: Optional[str]
|
|
131
131
|
working_status: Optional[bool] = Field(None, alias="workingStatus")
|
|
132
|
-
txt_id: int = Field(..., alias="txtId")
|
|
133
|
-
icon_id: int = Field(..., alias="iconId")
|
|
132
|
+
txt_id: Optional[int] = Field(..., alias="txtId")
|
|
133
|
+
icon_id: Optional[int] = Field(..., alias="iconId")
|
|
134
134
|
version: Optional[str] = None
|
|
135
135
|
company_id: Optional[int] = Field(None, alias="companyId")
|
|
136
136
|
controller_name: Optional[str] = Field(None, alias="controllerName")
|
|
@@ -149,9 +149,9 @@ class TileModel(BaseModel):
|
|
|
149
149
|
|
|
150
150
|
class ModuleModel(BaseModel):
|
|
151
151
|
zones: ZonesModel
|
|
152
|
-
tiles: List[TileModel]
|
|
153
|
-
tiles_order: Any = Field(..., alias="tilesOrder")
|
|
154
|
-
tiles_last_update: str = Field(..., alias="tilesLastUpdate")
|
|
152
|
+
tiles: Optional[List[TileModel]]
|
|
153
|
+
tiles_order: Optional[Any] = Field(..., alias="tilesOrder")
|
|
154
|
+
tiles_last_update: Optional[str] = Field(..., alias="tilesLastUpdate")
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
class AccountModuleModel(BaseModel):
|
|
@@ -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
|