mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-19 07:16:29 +00:00
Replace Alarm Control Panel FORMAT_ constants with CodeFormat enum (#1293)
This commit is contained in:
parent
c085255319
commit
b7b713a43c
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user