From c87f4403dee351bd989b70f37f4203df52d52c7e Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Apr 2022 23:08:50 +0200 Subject: [PATCH] Add EntityFeature enum to Siren (#1281) --- blog/2022-04-02-support-constants-deprecation.md | 12 ++++++++++++ docs/core/entity/siren.md | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/blog/2022-04-02-support-constants-deprecation.md b/blog/2022-04-02-support-constants-deprecation.md index b79d0a88..74e462a1 100644 --- a/blog/2022-04-02-support-constants-deprecation.md +++ b/blog/2022-04-02-support-constants-deprecation.md @@ -144,6 +144,18 @@ This applies to, the following platforms: 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** Deprecated supported feature constants: diff --git a/docs/core/entity/siren.md b/docs/core/entity/siren.md index b489e770..da546e41 100644 --- a/docs/core/entity/siren.md +++ b/docs/core/entity/siren.md @@ -26,9 +26,9 @@ Supported features constants are combined using the bitwise or (`|`) operator. | Name | Description | | ------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `SUPPORT_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). | -| `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.TONES` | The device supports different tones (the tone 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). | +| `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