From dc52483b200bbb3cfbffb4d369a4892eff0a3b79 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Fri, 1 Apr 2022 18:39:30 +0200 Subject: [PATCH] Add EntityFeature enum to Cover (#1268) --- docs/core/entity/cover.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/docs/core/entity/cover.md b/docs/core/entity/cover.md index b643c2ee..ca8c599b 100644 --- a/docs/core/entity/cover.md +++ b/docs/core/entity/cover.md @@ -52,20 +52,21 @@ Properties should always only return information from memory and not do I/O (lik | `STATE_CLOSING` | The cover is in the process of closing to reach a set position. | `STATE_CLOSED` | The cover has reach the closed position. -### Supported Features +## Supported Features -Supported features constants are combined using the bitwise or (`|`) operator. +Supported features are defined by using values in the `CoverEntityFeature` enum +and are combined using the bitwise or (`|`) operator. -| Constant | Description | -|----------|--------------------------------------| -| `SUPPORT_OPEN` | The cover supports being opened. -| `SUPPORT_CLOSE` | The cover supports being closed. -| `SUPPORT_SET_POSITION` | The cover supports moving to a specific position between opened and closed. -| `SUPPORT_STOP` | The cover supports stopping the current action (open, close, set position) -| `SUPPORT_OPEN_TILT` | The cover supports being tilting open. -| `SUPPORT_CLOSE_TILT` | The cover supports being tilting closed. -| `SUPPORT_SET_TILT_POSITION` | The cover supports moving to a specific tilt position between opened and closed. -| `SUPPORT_STOP_TILT` | The cover supports stopping the current tilt action (open, close, set position) +| Value | Description | +| ------------------- | -------------------------------------------------------------------------------- | +| `OPEN` | The cover supports being opened. | +| `CLOSE` | The cover supports being closed. | +| `SET_POSITION` | The cover supports moving to a specific position between opened and closed. | +| `STOP` | The cover supports stopping the current action (open, close, set position) | +| `OPEN_TILT` | The cover supports being tilting open. | +| `CLOSE_TILT` | The cover supports being tilting closed. | +| `SET_TILT_POSITION` | The cover supports moving to a specific tilt position between opened and closed. | +| `STOP_TILT` | The cover supports stopping the current tilt action (open, close, set position) | ## Methods