From b7b713a43ccc95cacd1cc7bf5297690936e36529 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Mon, 18 Apr 2022 19:37:41 +0200 Subject: [PATCH] Replace Alarm Control Panel FORMAT_ constants with CodeFormat enum (#1293) --- docs/core/entity/alarm-control-panel.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/core/entity/alarm-control-panel.md b/docs/core/entity/alarm-control-panel.md index 3c8225fd..188ea18a 100644 --- a/docs/core/entity/alarm-control-panel.md +++ b/docs/core/entity/alarm-control-panel.md @@ -34,6 +34,9 @@ Properties should always only return information from memory and not do I/O (lik ## Supported Features +Supported features are defined by using values in the `AlarmControlPanelEntityFeature` enum +and are combined using the bitwise or (`|`) operator. + | Constant | Description | |----------|--------------------------------------| | `AlarmControlPanelEntityFeature.ARM_AWAY` | The alarm supports arming in away mode. @@ -45,11 +48,13 @@ Properties should always only return information from memory and not do I/O (lik ### Code Formats +Supported code formats are defined by using values in the `CodeFormat` enum. + | Value | Description | ----- | ----------- -| None | No code required. -| Number | Code is a number (Shows ten-key pad on frontend). -| Any | Code is a string. +| `None` | No code required. +| `CodeFormat.NUMBER` | Code is a number (Shows ten-key pad on frontend). +| `CodeFormat.TEXT` | Code is a string. ## Methods