From e4fab6350eb417f955accdeb2d18ae232dd377ed Mon Sep 17 00:00:00 2001 From: G Johansson Date: Wed, 29 May 2024 11:19:03 +0200 Subject: [PATCH] AlarmControlPanel code validation (#2191) * AlarmControlPanel code validation * title * Apply suggestions from code review * tweaks * tweak --------- Co-authored-by: Erik Montnemery --- blog/2024-05-22-alarm_control_panel_validation.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 blog/2024-05-22-alarm_control_panel_validation.md diff --git a/blog/2024-05-22-alarm_control_panel_validation.md b/blog/2024-05-22-alarm_control_panel_validation.md new file mode 100644 index 00000000..6ecaec0f --- /dev/null +++ b/blog/2024-05-22-alarm_control_panel_validation.md @@ -0,0 +1,11 @@ +--- +author: G Johansson +authorURL: https://github.com/gjohansson-ST +title: Alarm Control Panel Entity code validation +--- + +The `AlarmControlPanelEntity` is now enforcing validation of code for alarm control panel entities, which set `code_arm_required` to `True` (default behavior). Service calls fail if no code is provided when a code is required. + +Previously this was entirely optional, and a user could skip code entry regardless of it was needed by the integration or not (and as such each integration needed to implement its own check). + +As the default behavior is that code is required, custom integrations that don't require a code input need to set `code_arm_required` to `False` or the user will always have to input a code regardless of if it's needed by the service calls.