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.
Files changed (22) hide show
  1. {pytouchlinesl-0.1.4/pytouchlinesl.egg-info → pytouchlinesl-0.1.5}/PKG-INFO +1 -1
  2. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pyproject.toml +1 -1
  3. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/client/base.py +1 -1
  4. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/client/client.py +2 -2
  5. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/touchlinesl.py +1 -1
  6. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5/pytouchlinesl.egg-info}/PKG-INFO +1 -1
  7. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/LICENSE +0 -0
  8. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/README.md +0 -0
  9. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/__init__.py +0 -0
  10. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/client/__init__.py +0 -0
  11. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/client/models/__init__.py +0 -0
  12. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/client/models/models.py +0 -0
  13. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/module.py +0 -0
  14. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl/zone.py +0 -0
  15. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl.egg-info/SOURCES.txt +0 -0
  16. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl.egg-info/dependency_links.txt +0 -0
  17. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl.egg-info/requires.txt +0 -0
  18. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/pytouchlinesl.egg-info/top_level.txt +0 -0
  19. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/setup.cfg +0 -0
  20. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/tests/test_module.py +0 -0
  21. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/tests/test_touchlinesl.py +0 -0
  22. {pytouchlinesl-0.1.4 → pytouchlinesl-0.1.5}/tests/test_zone.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytouchlinesl
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: An API client for Roth's TouchlineSL control system.
5
5
  Author-email: Jon Seager <jon@sgrs.uk>
6
6
  Project-URL: Homepage, https://github.com/jnsgruk/pytouchlinesl
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "pytouchlinesl"
3
- version = "0.1.4"
3
+ version = "0.1.5"
4
4
  authors = [{ name = "Jon Seager", email = "jon@sgrs.uk" }]
5
5
  description = "An API client for Roth's TouchlineSL control system."
6
6
  readme = "README.md"
@@ -11,7 +11,7 @@ class BaseClient(ABC):
11
11
  """Base API client implementation for Roth API clients."""
12
12
 
13
13
  @abstractmethod
14
- async def user_id(self) -> str:
14
+ async def user_id(self) -> int:
15
15
  """Return the unique user id for the authenticated account."""
16
16
  pass
17
17
 
@@ -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) -> str:
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, str)
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) -> str:
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytouchlinesl
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: An API client for Roth's TouchlineSL control system.
5
5
  Author-email: Jon Seager <jon@sgrs.uk>
6
6
  Project-URL: Homepage, https://github.com/jnsgruk/pytouchlinesl
File without changes
File without changes
File without changes