Multiple Time Pattern triggered template Entities

I’ve recently moved all my template entities into a new file as the the coming deprecation. Fine.

One group of sensors was time-pattern triggered thus:

- triggers:
    - trigger: time_pattern
      hours: 23
      minutes: 59
      seconds: 45
  sensor:
      - name: boiler_runtime_yesterday
        unique_id: sunny_bc_00004
        state: >
          {{states('sensor.boiler_runtime_today')}}
        unit_of_measurement: Hrs
      - name: oil_litres_yesterday
        unique_id: sunny_bc_00002
        state: >
          {{states('sensor.oil_litres_today')}}
        unit_of_measurement: L
...

and that aligns with the current documentation here

But now I want to add another block of template sensors with a different time-patter trigger so I tried:

- triggers:
    - trigger: time_pattern
      hours: 00
      minutes: 00
      seconds: 05
  sensor:      
    - name: todays_sunrise
      unique_id: todays_sunrise
      state: >
        {{state_attr('sun.sun', 'next_rising') | as_timestamp}}
    - trigger: time_pattern
      hours: 23
      minutes: 59
      seconds: 45
  sensor:
      - name: boiler_runtime_yesterday
        unique_id: sunny_bc_00004
        state: >
          {{states('sensor.boiler_runtime_today')}}
        unit_of_measurement: Hrs

But I’m getting the error about 2 ‘sensor’ blocks - which I understand, but I don’t know where to go from here?

I’m sure it’s a simple indentation problem but I’m not seeing it.

Thanks

- triggers:
    - trigger: time_pattern
      hours: 00
      minutes: 00
      seconds: 05
  sensor:      
    - name: todays_sunrise
      unique_id: todays_sunrise
      state: >
        {{state_attr('sun.sun', 'next_rising') | as_timestamp}}
- triggers:
    - trigger: time_pattern
      hours: 23
      minutes: 59
      seconds: 45
  sensor:
      - name: boiler_runtime_yesterday
        unique_id: sunny_bc_00004
        state: >
          {{states('sensor.boiler_runtime_today')}}
        unit_of_measurement: Hrs

Thanks. That worked. I marked it as the solution.