From c0d6b596c1dc082683f5e355f875f4db06422cd9 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Sun, 3 Apr 2022 06:01:22 +0200 Subject: [PATCH] Add EntityFeature enum to Lock (#1273) --- docs/core/entity/lock.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/core/entity/lock.md b/docs/core/entity/lock.md index ef2e9ec8..1607c375 100644 --- a/docs/core/entity/lock.md +++ b/docs/core/entity/lock.md @@ -20,13 +20,14 @@ Properties should always only return information from memory and not do I/O (lik | is_unlocking | bool | None | Indication of whether the lock is currently unlocking. Used to determine `state`. | is_jammed | bool | None | Indication of whether the lock is currently jammed. Used to determine `state`. -### Supported Features +## Supported Features -Supported features constants are combined using the bitwise or (`|`) operator. +Supported features are defined by using values in the `LockEntityFeature` enum +and are combined using the bitwise or (`|`) operator. -| Constant | Description | -|----------|--------------------------------------| -| `SUPPORT_OPEN` | This lock supports opening the door latch. +| Value | Description | +| ------ | ------------------------------------------ | +| `OPEN` | This lock supports opening the door latch. | ## Methods