Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with timezone for Israel #121

Open
pshotts opened this issue Oct 4, 2024 · 0 comments
Open

Problem with timezone for Israel #121

pshotts opened this issue Oct 4, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@pshotts
Copy link

pshotts commented Oct 4, 2024

Logger: homeassistant.util.loop
Source: util/loop.py:136
First occurred: 10:08:15 (1 occurrences)
Last logged: 10:08:15

Detected blocking call to open with args ('/usr/local/lib/python3.12/site-packages/pytz/zoneinfo/Asia/Tel_Aviv', 'rb') inside the event loop by custom integration 'trakt_tv' at custom_components/trakt_tv/apis/trakt.py, line 303: timezoned_now = datetime.now(pytz.timezone(configuration.get_timezone())) (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/dylandoamaral/trakt-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 "/config/custom_components/trakt_tv/apis/trakt.py", line 303, in fetch_upcoming timezoned_now = datetime.now(pytz.timezone(configuration.get_timezone()))

@dylandoamaral dylandoamaral added the bug Something isn't working label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants