Invalid config for [template]: [select] is an invalid option for [template]

Trying to follow the documentation at Template - Home Assistant to make a trigger based select sensor. However I get the error Invalid config for [template]: [select] is an invalid option for [template].

I’m running core-2021.8.8. Code is:

template:
  - trigger:
      - id: open
        platform: state
        entity_id: binary_sensor.dishwasher_door_contact
        from: "off"
        to: "on"
    select:
      - name: Dishwasher Monitor
        state: test
        select_option: test
        options:
          - test

If I use sensors instead of select that works:

template:
  - trigger:
      - id: open
        platform: state
        entity_id: binary_sensor.dishwasher_door_contact
        from: "off"
        to: "on"
    sensor:
      - name: Dishwasher Monitor
        state: test

This was introduced in 2021.9