Broadlink Remote and Roku Remote integration in the same sequence

I’m wondering if anyone can see anything wrong with the formatting of the script sequence below, from a formatting perspective at least? I have been banging my head against the wall trying to get a script that will turn the volume all the way down then back up to an acceptable (low) level on the AV Receiver before it engages the Roku. (I realize most of the Roku portion is missing from the below).

  sequence:
  - data:
      command: volume_down
      device: television
      num_repeats: 30
    entity_id: remote.broadlink
    service: remote.send_command
  - delay: 00:00:45
  - data:
      command: volume_up
      device: television
      num_repeats: 15
    entity_id: remote.broadlink
    service: remote.send_command
  - delay: 00:00:10
  - data:
      command: input_cd
      device: amplifier
    entity_id: remote.broadlink
    service: remote.send_command
  - delay: 00:00:05
  - data:
      command: input select right
      device: amplifier
    entity_id: remote.broadlink
    service: remote.send_command
  - data:
      source: 19977
    entity_id: media_player.roku_streaming_stick
    service: media_player.select_source