[valve] Tidy up name/id (#4154)

This commit is contained in:
Jesse Hills 2024-08-14 14:02:34 +12:00 committed by GitHub
parent 3a5ecc9055
commit dc2c7aa02f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View File

@ -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::

View File

@ -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 <config-lambda>`):
Lambda to be evaluated repeatedly to get the current state of the valve.
- **open_action** (*Optional*, :ref:`Action <config-action>`): The action that should be performed when the remote
@ -65,7 +64,6 @@ Configuration variables:
- **position_action** (*Optional*, :ref:`Action <config-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 <config-valve>`.
.. _valve-template-publish_action: