Automation template error

I am trying to store my current hvac_mode in a input_select and i am not sure why it is barking at me about mapping values not being allowed here.

- id: '1589381297570'
  alias: HVAC Off if Door left open
  description: ''
  trigger:
  - entity_id: group.door_sensors
    for: 00:05
    platform: state
    to: 'on'
  condition:
  - condition: template
    value_template: states.climate.thermostat_39.state | hvac_modes != "off"
  action:
  - service: input_select.select_option
      data_template:
        entity_id: input_select.hvac_mode
        option: "{{ states('climate.thermostat_39') }}"
  - data:
      hvac_mode: 'off'
    entity_id: climate.thermostat_39
    service: climate.set_hvac_mode

Have you tried putting this into the template sandbox in the development tab?

{{states('climate.thermostat_39')}}

Because I think this is a map, and select_option is expecting a single string value.

it shows as valid in the template sandbox, currently it outputs “cool”, which is correct.