Redundant keyword switch: in configuration.yaml file

I am still new to Home Assistant so forgive me if this is a dumb question. My configuration.yaml file contains the below code to make a virtual switch called “test” from a template and also my AArlo camera configuration which is a HACS integration. My log file is complaining about there being 2 switch: keywords in my configuration.yaml file. If I comment out the code so there is only 1 instance of the keyword switch:, then the log warning goes away. Is it possible to have the keyword switch: used more than once in the configuration.yaml file? If not, then how can I make a virtual switch but still have my camera configuration statements.

# Template for Virtual Switch Example
switch:
  - platform: template
    switches:
      test:
        value_template: "{{ is_state('some_state_condition', 'off') }}"
        turn_off:
          service: switch.turn_off
          target:
            entity_id: switch.test
        turn_on:
          service: switch.turn_on
          target:
            entity_id: switch.test



#Arlo Cameras
aarlo:
  username: xxxxxxxxxxxxxxx
  password: xxxxxxxxxxxxxxx
  refresh_devices_every: 2
  stream_timeout: 120
  reconnect_every: 90
sensor:
  - platform: aarlo
    monitored_conditions:
    - battery_level
    - signal_strength
light:
  - platform: aarlo
switch:
  - platform: aarlo
    siren: True
    siren_volume: 8
    siren_duration: 15
binary_sensor:
  - platform: aarlo
    monitored_conditions:
    - motion

This way:

switch:
  - platform: template
    switches:
      test:
        value_template: "{{ is_state('some_state_condition', 'off') }}"
        turn_off:
          ...

  - platform: aarlo
    siren: True
    siren_volume: 8
    siren_duration: 15

or Style 2: