Replace Alarm Control Panel FORMAT_ constants with CodeFormat enum (#1293)

This commit is contained in:
Franck Nijhof 2022-04-18 19:37:41 +02:00 committed by GitHub
parent c085255319
commit b7b713a43c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,9 @@ Properties should always only return information from memory and not do I/O (lik
## Supported Features ## Supported Features
Supported features are defined by using values in the `AlarmControlPanelEntityFeature` enum
and are combined using the bitwise or (`|`) operator.
| Constant | Description | | Constant | Description |
|----------|--------------------------------------| |----------|--------------------------------------|
| `AlarmControlPanelEntityFeature.ARM_AWAY` | The alarm supports arming in away mode. | `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 ### Code Formats
Supported code formats are defined by using values in the `CodeFormat` enum.
| Value | Description | Value | Description
| ----- | ----------- | ----- | -----------
| None | No code required. | `None` | No code required.
| Number | Code is a number (Shows ten-key pad on frontend). | `CodeFormat.NUMBER` | Code is a number (Shows ten-key pad on frontend).
| Any | Code is a string. | `CodeFormat.TEXT` | Code is a string.
## Methods ## Methods