From dc2c7aa02f3abf4b16fb5cd0e346aaea4a8f3095 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:02:34 +1200 Subject: [PATCH] [valve] Tidy up name/id (#4154) --- components/valve/index.rst | 3 ++- components/valve/template.rst | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/components/valve/index.rst b/components/valve/index.rst index c6f196ac1..912bc676c 100644 --- a/components/valve/index.rst +++ b/components/valve/index.rst @@ -30,7 +30,8 @@ All valve config schemas inherit from this schema - you can set these keys for v Configuration variables: -- **name** (**Required**, string): The name for the valve. +- **id** (*Optional*, string): Manually specify the ID for code generation. At least one of **id** and **name** must be specified. +- **name** (*Optional*, string): The name for the valve. At least one of **id** and **name** must be specified. .. note:: diff --git a/components/valve/template.rst b/components/valve/template.rst index ddb517a58..d295920e3 100644 --- a/components/valve/template.rst +++ b/components/valve/template.rst @@ -41,7 +41,6 @@ Possible return values for the optional lambda: Configuration variables: ------------------------ -- **name** (**Required**, string): The name of the valve. - **lambda** (*Optional*, :ref:`lambda `): Lambda to be evaluated repeatedly to get the current state of the valve. - **open_action** (*Optional*, :ref:`Action `): The action that should be performed when the remote @@ -65,7 +64,6 @@ Configuration variables: - **position_action** (*Optional*, :ref:`Action `): The action that should be performed when the remote (like Home Assistant's frontend) requests the valve be set to a specific position. The desired position is available in the lambda in the ``pos`` variable. Requires ``has_position`` (above) to be set to ``true``. -- **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. - All other options from :ref:`Valve `. .. _valve-template-publish_action: