Calling scripts from a script

I have a question related to the flow of execution in a script that calls scripts:
The main script is a bit like this:
sequence:
- service: script.handle_kitchen
- service: script.handle_livingroom
- service: script.handle_bedroom

Is the above executed sequentially meaning that script.handle_kitchen is executed and when finished it will continue with script.handle_livingroom? What happens when script.handle_kitchen conditionally stops execution, does the main sequence also stop?

1 Like

No.
I found this thread because I was doing the same thing and when I use the script below all three scripts run even when a condition stops script.one or script.two from running.

sequence:
    - service: script.turn_on
      entity_id:
        - script.one
        - script.two
        - script.three
2 Likes