aioccl 2024.12.2__py3-none-any.whl → 2024.12.3__py3-none-any.whl
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.
- aioccl/server.py +3 -2
- {aioccl-2024.12.2.dist-info → aioccl-2024.12.3.dist-info}/METADATA +1 -1
- aioccl-2024.12.3.dist-info/RECORD +9 -0
- aioccl-2024.12.2.dist-info/RECORD +0 -9
- {aioccl-2024.12.2.dist-info → aioccl-2024.12.3.dist-info}/LICENSE +0 -0
- {aioccl-2024.12.2.dist-info → aioccl-2024.12.3.dist-info}/WHEEL +0 -0
- {aioccl-2024.12.2.dist-info → aioccl-2024.12.3.dist-info}/top_level.txt +0 -0
aioccl/server.py
CHANGED
@@ -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",
|
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
|
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
|
@@ -0,0 +1,9 @@
|
|
1
|
+
aioccl/__init__.py,sha256=XnegKtbvHvUTwVuuWNLb4LB9ZuGGar0xrZYOqk7scyg,133
|
2
|
+
aioccl/device.py,sha256=4TYkr3O4XI2l3XdTlGs62qXxsa0pA0_ig0d87nXwaSY,5278
|
3
|
+
aioccl/sensor.py,sha256=tMv_ypqsDIxWdghHQv91PUTOt2kUJGygZmFnJtzOx0k,16905
|
4
|
+
aioccl/server.py,sha256=qNQJtRg9wIzgQ8OHKyF4hfLmJdfYlfa4T7uXiA8cHok,3365
|
5
|
+
aioccl-2024.12.3.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
+
aioccl-2024.12.3.dist-info/METADATA,sha256=3kn-fJ6rB9oJulGAmKhMN0TcCN2Eqq7m8HamdGmuzVU,768
|
7
|
+
aioccl-2024.12.3.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
8
|
+
aioccl-2024.12.3.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
+
aioccl-2024.12.3.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
aioccl/__init__.py,sha256=XnegKtbvHvUTwVuuWNLb4LB9ZuGGar0xrZYOqk7scyg,133
|
2
|
-
aioccl/device.py,sha256=4TYkr3O4XI2l3XdTlGs62qXxsa0pA0_ig0d87nXwaSY,5278
|
3
|
-
aioccl/sensor.py,sha256=tMv_ypqsDIxWdghHQv91PUTOt2kUJGygZmFnJtzOx0k,16905
|
4
|
-
aioccl/server.py,sha256=k1YgFeNImxYILxalPIV23UDB3hvjaOH4pVWeB7cJkmM,3343
|
5
|
-
aioccl-2024.12.2.dist-info/LICENSE,sha256=PBRsTHchx7o0TQ2R2ktEAfFmn1iNHTxcOP_xaeuSAuo,11349
|
6
|
-
aioccl-2024.12.2.dist-info/METADATA,sha256=gYgnLScvW9u0xS60IzPWhLc0OqwKJrUQzMEDufl3w0E,768
|
7
|
-
aioccl-2024.12.2.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
8
|
-
aioccl-2024.12.2.dist-info/top_level.txt,sha256=-xIJfyfXTaW_EH7XCIHyxjSSSwjLmawa2qhsrHZH1vA,7
|
9
|
-
aioccl-2024.12.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|