How to arm alarm from UI without PIN

I’m using the alarmdotcom integration from HACS, and have the following alarm panel code in my UI:

type: alarm-panel
entity: alarm_control_panel.partition1
name: House alarm
states:
  - arm_home
  - arm_away

This worked for many years, but broke a few months back. I can still disarm the alarm from the UI, and arm or disarm the alarm from scripts, but if I try to arm the alarm from the UI, I get the error: “Validation error: Arming requires a code but none was given for alarm_control_panel.partition1.”

There are many threads about this, but none explains how to fix it in a way that seems to apply to my system. In particular, I no longer have anything in my configuration.yaml file because all the configuration is done in the UI.

If I set a PIN in the alarmdotcom settings UI, then it will allow me to arm the alarm, but the UI becomes clunky. Since I can disable the alarm without a PIN or with a script anyway, or change the PIN to whatever I want in the UI given access to homeassistant even if I don’t know the old PIN, the PIN doesn’t really serve any security in my configuration, so I don’t want to have to enter a PIN to set the alarm.

Can someone tell me how to eliminate the problem from start to finish? In other words, I know there’s probably some option to fix this, but if you give me some YAML I need to know what file to put it in and in what context. There seem to be some options in .storage/core.config_entries, but this is JSON not YAML.

Thanks.

Okay, I finally figured it out! From the UI, click on the little icon that says “Disarmed” in the upper right hand corner of the alarm card. Then click on the gear icon. There’s an text entry box called “Default code.” Just type 0 in there, and then you can arm your alarm again!