This is a new error, got on first HA restart after updating pyScript to 2.0.0 and HA to 2026.4.4.
2026-05-05 16:00:00.012 ERROR (MainThread) [custom_components.pyscript.function] run_coro: got exception Traceback (most recent call last):
File "/config/custom_components/pyscript/eval.py", line 936, in aeval
raise NameError(f"name '{val.name}' is not defined")
NameError: name 'now' is not defined
PyScript: 2.0.0
Installation method Home Assistant Container
Core 2026.4.4
Frontend 20260325.8
This is a new error, got on first HA restart after updating pyScript to 2.0.0 and HA to 2026.4.4.
2026-05-05 16:00:00.012 ERROR (MainThread) [custom_components.pyscript.function] run_coro: got exception Traceback (most recent call last):
File "/config/custom_components/pyscript/eval.py", line 936, in aeval
raise NameError(f"name '{val.name}' is not defined")
NameError: name 'now' is not defined
PyScript: 2.0.0
Installation method Home Assistant Container
Core 2026.4.4
Frontend 20260325.8