Add EntityFeature enum to Siren (#1281)

This commit is contained in:
epenet 2022-04-07 23:08:50 +02:00 committed by GitHub
parent 1f6624ffd8
commit c87f4403de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View File

@ -144,6 +144,18 @@ This applies to, the following platforms:
Use the new [`RemoteEntityFeature`](/docs/core/entity/remote#supported-features) enum instead. Use the new [`RemoteEntityFeature`](/docs/core/entity/remote#supported-features) enum instead.
- **Siren**
Deprecated supported feature constants:
- `SUPPORT_DURATION`
- `SUPPORT_TONES`
- `SUPPORT_TURN_OFF`
- `SUPPORT_TURN_ON`
- `SUPPORT_VOLUME_SET`
Use the new [`SirenEntityFeature`](/docs/core/entity/siren#supported-features) enum instead.
- **Vacuum** - **Vacuum**
Deprecated supported feature constants: Deprecated supported feature constants:

View File

@ -26,9 +26,9 @@ Supported features constants are combined using the bitwise or (`|`) operator.
| Name | Description | | Name | Description |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------- | | ------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `SUPPORT_TONES` | The device supports different tones (the tone can be passed in to `turn_on` service). | | `SirenEntityFeature.TONES` | The device supports different tones (the tone can be passed in to `turn_on` service). |
| `SUPPORT_DURATION` | The device supports setting a duration for the tone (the duration can be passed in to `turn_on` service). | | `SirenEntityFeature.DURATION` | The device supports setting a duration for the tone (the duration can be passed in to `turn_on` service). |
| `SUPPORT_VOLUME_SET` | The device supports setting the volume level of the device (the volume level can be passed in to `turn_on` service). | | `SirenEntityFeature.VOLUME_SET` | The device supports setting the volume level of the device (the volume level can be passed in to `turn_on` service). |
## Methods ## Methods