Skip to content

Code not getting executed #691

Open
Open
@Djayden-R

Description

@Djayden-R

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions