-
Notifications
You must be signed in to change notification settings - Fork 44
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
blocking call (Home assistant) #612
Comments
I'm seeing similar errors, running HA 2024.7.0.
|
I obtained the same (verbatim as far as I can tell) warnings as @jkfranks9 on: |
@jkfranks9 I think #608 only occurs if you use something like The issue you saw in #612 (comment) occurs in a different situation (not caused by time based triggers like the sunrise/sunset issue). I did not fix that in my PR - it should however be fixed by @craigbarratt in the latest
|
Thanks, so I believe I should open a new issue for the problem I mentioned in comment 2. Will do that when I get a chance. |
Please first try to deploy If you use |
I pulled in the master branch, and I no longer see the blocking problem. Thanks. |
|
include: Detected blocking call #619 |
Core 2024.7.3 The same messages related to os.walk() and os.scandir() appear even 'config/pyscript' folder is empty. |
Hey @craigbarratt 👋 Could you create a new release for the latest changes? |
I got this error:
Logger: homeassistant.util.loop
Source: util/loop.py:84
First appearance: 08:20:01 (1 gebeurtenissen)
Last logged: 08:20:01
Detected blocking call to open inside the event loop by custom integration 'pyscript' at custom_components/pyscript/trigger.py, line 626: time_sun = location.sunset(dt.date(year, month, day)) (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/custom-components/pyscript/issues 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 190, in run return loop.run_until_complete(setup_and_run_hass(runtime_config)) File "/usr/local/lib/python3.12/asyncio/base_events.py", line 672, in run_until_complete self.run_forever() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 639, in run_forever self._run_once() File "/usr/local/lib/python3.12/asyncio/base_events.py", line 1988, 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/pyscript/function.py", line 448, in run_coro result = await coro File "/config/custom_components/pyscript/trigger.py", line 1010, in trigger_watch time_next = TrigTime.timer_trigger_next(self.time_trigger, now, startup_time) File "/config/custom_components/pyscript/trigger.py", line 727, in timer_trigger_next this_t = cls.parse_date_time(match1[1].strip(), 0, now, startup_time) File "/config/custom_components/pyscript/trigger.py", line 626, in parse_date_time time_sun = location.sunset(dt.date(year, month, day))
Can you solve this. (HAOS 12.4)
The text was updated successfully, but these errors were encountered: