mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-13 12:26:29 +00:00
Add EntityFeature enum to Siren (#1281)
This commit is contained in:
parent
1f6624ffd8
commit
c87f4403de
@ -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:
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user