This action lets you define a custom Python script inside the workflow YAML file. Write your Python code as the script argument, and use the YAML multiline string feature to define multiline scripts.
Custom component for easy run Python Scripts from Home Assistant. Better version of default python_script component.