Skip to content

Code not getting executed #691

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

Open
Djayden-R opened this issue Jan 29, 2025 · 0 comments
Open

Code not getting executed #691

Djayden-R opened this issue Jan 29, 2025 · 0 comments

Comments

@Djayden-R
Copy link

Djayden-R commented Jan 29, 2025

I am just recently encountering an issue where my code simply doesn't execute. I thought maybe the problem was with my code, so I made the simplest code possible:

@service
def logging_test():
    log.warning("The code executed")

I then tested it by running it from Developer Tools > Actions and entered:
"Pyscript Python scripting: logging_test"

However, when I ran it, I didn't see the message "The code executed"

2025-01-29 21:54:28.234 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Running websocket_api script
2025-01-29 21:54:28.239 INFO (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Executing step call service

These are the only 2 messages that appear in the logs after I execute the code. There is no mention of the code getting executed. I have already reinstalled Pyscript and restarted my server, but the problem persists.

System Information:
Pyscript version 1.6.1
Home Assistant version 2025.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant