From 553150b8740d30587228090f6a2ce7e440d49600 Mon Sep 17 00:00:00 2001 From: raman325 <7243222+raman325@users.noreply.github.com> Date: Wed, 7 Jul 2021 00:16:43 -0400 Subject: [PATCH] feedback --- docs/core/entity/siren.md | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/docs/core/entity/siren.md b/docs/core/entity/siren.md index 345c557c..1db8c2a6 100644 --- a/docs/core/entity/siren.md +++ b/docs/core/entity/siren.md @@ -42,28 +42,14 @@ Each input parameter is gated by a supported feature flag. If the corresponding - `duration`: `SUPPORT_DURATIONS` - `volume_level`: `SUPPORT_VOLUME_SET` -Only include the parameters that your integration supports in your turn on function definition as the rest will always be `None` - ```python class MySirenEntity(SirenEntity): # Implement one of these methods. - def turn_on( - self, - tone: int | str = None, - duration: int = None, - volume_level: float = None, - **kwargs - ) -> None: + def turn_on(self, **kwargs) -> None: """Turn the device on.""" - async def async_turn_on( - self, - tone: int | str = None, - duration: int = None, - volume_level: float = None, - **kwargs - ) -> None: + async def async_turn_on(self, **kwargs) -> None: """Turn the device on.""" ```