-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Pyscript at HA 2024.6.0 spams with error
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 623, in parse_date_time
time_sun = location.sunrise(dt.date(year, month, day))
2024-06-07 22:03:50.811 WARNING (MainThread) [homeassistant.util.loop] Detected blocking call to open inside the event loop by custom integration 'pyscript' at custom_components/pyscript/trigger.py, line 623: time_sun = location.sunrise(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
wrfz and redlefloh
Metadata
Metadata
Assignees
Labels
No labels