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
alarm_control_panel:
  - platform: template
    panels:
      safe_alarm_panel:
        value_template: "{{ states('alarm_control_panel.real_alarm') }}"
        arm_away:
          service: alarm_control_panel.alarm_arm_away
          target:
            entity_id: alarm_control_panel.real_alarm
          data:
            code: !secret alarm_code
        disarm:
          - condition: state
            entity_id: device_tracker.paulus
            state: "home"
          - service: alarm_control_panel.alarm_arm_home
            target:
              entity_id: alarm_control_panel.real_alarm
            data:
              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.