Add EntityFeature enum to Lock (#1273)

This commit is contained in:
Franck Nijhof 2022-04-03 06:01:22 +02:00 committed by GitHub
parent bf8481a498
commit c0d6b596c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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