If it was caused by the pyscript integration, how was it possible for the error message to appear after you had uninstalled the pyscript integration?
The service decorator appears in files that Home Assistant wouldn’t normally access without the pyscript integration, does it not?