Why does part of a script fails to execute?

I am on the latest version of HA and noticed that lately, the following script fails to execute the very last section (the switch part). No errors anywhere to be found. Any ideas?

      bedtime:
        alias: Bedtime
        sequence:
          - service: input_boolean.turn_off
            entity_id:
              - input_boolean.bedroom_lights
              - input_boolean.my_lights
          - service: light.turn_off
            entity_id:
              - light.porch
              - light.garden
              - light.tall_lamp
              - light.short_lamp
              - light.tv_light
              - light.kitchen
              - light.counter_lights
              - light.dining_hall
              - light.dining_window
          - service: lock.lock
            entity_id:
              - lock.back_door
              - lock.front_door
              - lock.kitchen_door
          - service: input_select.select_option
            entity_id: input_select.harmony_activity
            data:
              option: "PowerOff"
          - service: light.turn_on
            data:
              entity_id: light.bedroom_his
              brightness_pct: 75
              color_name: White
          - service: light.turn_on
            data:
              entity_id: light.bedroom_hers
              brightness_pct: 75
              color_name: Yellow
          - service: fan.turn_off
            entity_id: fan.living_room
          - service: climate.set_temperature
            data:
              entity_id: climate.hallway
              temperature: 70
              hvac_mode: heat
          - service: switch.turn_off
            entity_id:
              - switch.outdoor_lights
              - switch.tree