aioccl 2024.10__tar.gz → 2024.12__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.
- {aioccl-2024.10 → aioccl-2024.12}/PKG-INFO +1 -1
- {aioccl-2024.10 → aioccl-2024.12}/aioccl/server.py +2 -15
- {aioccl-2024.10 → aioccl-2024.12}/aioccl.egg-info/PKG-INFO +1 -1
- {aioccl-2024.10 → aioccl-2024.12}/setup.py +1 -1
- {aioccl-2024.10 → aioccl-2024.12}/LICENSE +0 -0
- {aioccl-2024.10 → aioccl-2024.12}/README.md +0 -0
- {aioccl-2024.10 → aioccl-2024.12}/aioccl/__init__.py +0 -0
- {aioccl-2024.10 → aioccl-2024.12}/aioccl/device.py +0 -0
- {aioccl-2024.10 → aioccl-2024.12}/aioccl/sensor.py +0 -0
- {aioccl-2024.10 → aioccl-2024.12}/aioccl.egg-info/SOURCES.txt +0 -0
- {aioccl-2024.10 → aioccl-2024.12}/aioccl.egg-info/dependency_links.txt +0 -0
- {aioccl-2024.10 → aioccl-2024.12}/aioccl.egg-info/requires.txt +0 -0
- {aioccl-2024.10 → aioccl-2024.12}/aioccl.egg-info/top_level.txt +0 -0
- {aioccl-2024.10 → aioccl-2024.12}/setup.cfg +0 -0
@@ -5,7 +5,6 @@ from __future__ import annotations
|
|
5
5
|
import logging
|
6
6
|
|
7
7
|
from aiohttp import web
|
8
|
-
import aiohttp_cors
|
9
8
|
|
10
9
|
from .device import CCLDevice, CCL_DEVICE_INFO_TYPES
|
11
10
|
from .sensor import CCL_SENSORS
|
@@ -90,20 +89,8 @@ class CCLServer:
|
|
90
89
|
return web.Response(status=_status, text=_text)
|
91
90
|
|
92
91
|
app = web.Application()
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
resource = cors.add(app.router.add_resource("/{passkey}"))
|
97
|
-
route = cors.add(
|
98
|
-
resource.add_route("POST", _handler),
|
99
|
-
{
|
100
|
-
"*": aiohttp_cors.ResourceOptions(
|
101
|
-
allow_credentials=True,
|
102
|
-
expose_headers="*",
|
103
|
-
allow_headers="*",
|
104
|
-
)
|
105
|
-
},
|
106
|
-
)
|
92
|
+
|
93
|
+
app.add_routes([web.get('/{passkey}', _handler)])
|
107
94
|
|
108
95
|
@staticmethod
|
109
96
|
async def run() -> None:
|
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
|