Add EntityFeature enum to Fan (#1269)

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

View File

@ -32,12 +32,15 @@ Manually setting a speed must disable any set preset mode. If it is possible to
## Supported Features ## Supported Features
| Constant | Description | Supported features are defined by using values in the `FanEntityFeature` enum
|----------|--------------------------------------| and are combined using the bitwise or (`|`) operator.
| 'SUPPORT_DIRECTION' | The fan supports changing the direction.
| 'SUPPORT_SET_SPEED' | The fan supports setting the speed percentage and optional preset modes. | Value | Description |
| 'SUPPORT_OSCILLATE' | The fan supports oscillation. | ------------- | ------------------------------------------------------------------------ |
| 'SUPPORT_PRESET_MODE' | The fan supports preset modes. | `DIRECTION` | The fan supports changing the direction. |
| `OSCILLATE` | The fan supports oscillation. |
| `PRESET_MODE` | The fan supports preset modes. |
| `SET_SPEED` | The fan supports setting the speed percentage and optional preset modes. |
## Methods ## Methods