koush / scrypted

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

Using Home Assistant 2024.10 Beta #1596

Closed squizzer73 closed 1 month ago

squizzer73 commented 1 month ago

Hi,

My instance was working fine with Home Assistant 2024.9 but since updating to the Beta I get the following error in the logs.

Logger: homeassistant.setup Source: setup.py:416 First occurred: 10:39:07 (1 occurrences) Last logged: 10:39:07

Error during setup of component scrypted 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 0x7fbc2c261800>

squizzer73 commented 1 month ago

I don't know if it is related but I also have nothing showing up in the events view for each camera but have plenty in the detections view.

koush commented 1 month ago

Update thr custom component.

squizzer73 commented 1 month ago

Doh, thanks that worked.