koush / scrypted

Scrypted is a high performance video integration and automation platform
https://scrypted.app
Other
4.32k stars 255 forks source link

After upgrade HomeAssistant to 2024.10 : Error during setup of component Scrypted #1598

Closed xavierlaffargue closed 1 month ago

xavierlaffargue commented 1 month ago

After upgrade Home Assistant to 2024.10 Scrypted doesn't start :

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 416, in _async_setup_component result = await task ^^^^^^^^^^ File "/config/custom_components/scrypted/init.py", line 28, in async_setup hass.http.register_view(ScryptedView(hass, session)) File "/usr/src/homeassistant/homeassistant/components/http/init.py", line 432, in register_view view.register(self.hass, self.app, self.app.router) File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 188, in register allow_cors(route) File "/usr/src/homeassistant/homeassistant/components/http/cors.py", line 72, in _allow_cors cors.add(route, config) File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/cors_config.py", line 263, in add return self._cors_impl.add(routing_entity, config) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/cors_config.py", line 134, in add self._router_adapter.add_preflight_handler( File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/urldispatcher_router_adapter.py", line 195, in add_preflight_handler self.add_preflight_handler(route.resource, handler) File "/usr/local/lib/python3.12/site-packages/aiohttp_cors/urldispatcher_router_adapter.py", line 161, in add_preflight_handler raise ValueError( ValueError: <DynamicResource /api/scrypted/{token}/{path}> already has OPTIONS handler <function request_handler_factory..handle at 0x7feb925085e0>