Error in error log regarding timezone DST change
Closed this issue · 1 comments
I am running the latest version 5.2.0
Configuration
N/A
Add your logs here.
Logger: homeassistant.util.loop
Source: util/loop.py:136
First occurred: 16:30:31 (1 occurrences)
Last logged: 16:30:31
Detected blocking call to open with args ('/usr/local/lib/python3.12/site-packages/pytz/zoneinfo/Europe/London', 'rb') inside the event loop by custom integration 'frigate' at custom_components/frigate/media_source.py, line 469: ) - (dt.datetime.now(pytz.timezone(timezone)).utcoffset() or dt.timedelta()) (offender: /usr/local/lib/python3.12/site-packages/pytz/init.py, line 108: return open(filename, 'rb')), please create a bug report at https://github.com/blakeblackshear/frigate-hass-integration/issues For developers, please see https://developers.home-assistant.io/docs/asyncio_blocking_operations/#open Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/usr/src/homeassistant/homeassistant/main.py", line 223, in sys.exit(main()) File "/usr/src/homeassistant/homeassistant/main.py", line 209, in main exit_code = runner.run(runtime_conf) File "/usr/src/homeassistant/homeassistant/runner.py", line 189, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 674, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 641, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1990, in _run_once handle._run() File "/usr/local/lib/python3.12/asyncio/events.py", line 88, in _run self._context.run(self._callback, *self._args) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 477, in _handle_request resp = await request_handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 559, in _handle return await handler(request) File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware return await handler(request) File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware response = await handler(request) File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle result = await handler(request, **request.match_info) File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 55, in get return await WebSocketHandler(request.app[KEY_HASS], request).async_handle() File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 341, in async_handle await self._async_websocket_command_phase(connection, send_bytes_text) File "/usr/src/homeassistant/homeassistant/components/websocket_api/http.py", line 492, in async_websocket_command_phase async_handle_str(command_msg_data) File "/usr/src/homeassistant/homeassistant/components/websocket_api/connection.py", line 229, in async_handle handler(self.hass, self, schema(msg)) File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 47, in schedule_handler hass.async_create_background_task( File "/usr/src/homeassistant/homeassistant/core.py", line 861, in async_create_background_task task = create_eager_task(target, name=name, loop=self.loop) File "/usr/src/homeassistant/homeassistant/util/async.py", line 45, in create_eager_task return Task(coro, loop=loop, name=name, eager_start=True) File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 28, in _handle_async_response await func(hass, connection, msg) File "/usr/src/homeassistant/homeassistant/components/media_source/init.py", line 207, in websocket_resolve_media media = await async_resolve_media(hass, msg["media_content_id"], None) File "/usr/src/homeassistant/homeassistant/components/media_source/init.py", line 170, in async_resolve_media return await item.async_resolve() File "/usr/src/homeassistant/homeassistant/components/media_source/models.py", line 84, in async_resolve return await self.async_media_source().async_resolve_media(self) File "/config/custom_components/frigate/media_source.py", line 575, in async_resolve_media server_path = identifier.get_integration_proxy_path( File "/config/custom_components/frigate/media_source.py", line 469, in get_integration_proxy_path ) - (dt.datetime.now(pytz.timezone(timezone)).utcoffset() or dt.timedelta())
Describe the bug
A clear and concise description of what the bug is.
Noticed when I select recordings in the frigate hass card some hours of the day are missing since the clocks in London went back an hour today. Error in logs seem to be related?
Debug log
Add your logs here.
Thank you