Template Alarm Control Panel - Code not needed?

I found this site, to add a pin code to my existing alarm by Bosch Smart Home.

By default, it doesnt has a pincode to arm or disarm.

So i want to add a pincode to the dashboard when arm or disarm the alarm.
But for some reason, i can also click arm or disarm without typing in the code… But why?

Thats the Code from this page

# Example configuration.yaml entry
  - platform: template
        value_template: "{{ states('alarm_control_panel.real_alarm') }}"
          service: alarm_control_panel.alarm_arm_away
            entity_id: alarm_control_panel.real_alarm
            code: !secret alarm_code
          - condition: state
            entity_id: device_tracker.paulus
            state: "home"
          - service: alarm_control_panel.alarm_arm_home
              entity_id: alarm_control_panel.real_alarm
              code: !secret alarm_code

in secrets.yaml i have alarm_code: 1234

no ideas anywhere? :confused:

i am also interested in adding a pin, the “yale” integration by default isn’t asking for a pin on the dashboard and I would like to add one.

I also just encountered the same limitation.
In my case, I have multiple alarms from 2 providers and wanted to unify them into one.
When I add a “code:” at the same level as “value_template:”, it’s rejected.
I think we should ask for an enhancement to handle this.