aioccl 2024.12.2__tar.gz → 2024.12.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aioccl
3
- Version: 2024.12.2
3
+ Version: 2024.12.3
4
4
  Summary: A Python library for CCL API server
5
5
  Home-page: https://github.com/fkiscd/aioccl
6
6
  Download-URL: https://github.com/fkiscd/aioccl
@@ -24,7 +24,7 @@ class CCLServer:
24
24
  def register(device: CCLDevice) -> None:
25
25
  """Register a device with a passkey."""
26
26
  CCLServer.devices.setdefault(device.passkey, device)
27
- _LOGGER.debug("Device registered: %s", CCLServer.devices)
27
+ _LOGGER.debug("Device registered: %s", device)
28
28
 
29
29
  @staticmethod
30
30
  def get_handler() -> Callable[[web.BaseRequest], web.Response]:
@@ -43,10 +43,11 @@ class CCLServer:
43
43
  _text: None | str = None
44
44
 
45
45
  try:
46
- for passkey, _device in CCLServer.devices.items():
46
+ for passkey in CCLServer.devices:
47
47
  if passkey == request.match_info["passkey"]:
48
48
  _passkey = passkey
49
49
  break
50
+ _device = CCLServer.devices[_passkey]
50
51
  assert _device, 404
51
52
 
52
53
  assert request.content_type == "application/json", 400
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aioccl
3
- Version: 2024.12.2
3
+ Version: 2024.12.3
4
4
  Summary: A Python library for CCL API server
5
5
  Home-page: https://github.com/fkiscd/aioccl
6
6
  Download-URL: https://github.com/fkiscd/aioccl
@@ -3,7 +3,7 @@
3
3
  from pathlib import Path
4
4
  from setuptools import find_packages, setup
5
5
 
6
- VERSION = "2024.12.2"
6
+ VERSION = "2024.12.3"
7
7
 
8
8
  ROOT_DIR = Path(__file__).parent.resolve()
9
9
 
File without changes
File without changes
File without changes
File without changes
File without changes