[event] Tidy up name/id (#4143)

* [event] Tidy up name/id

* Fix spelling

---------

Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
This commit is contained in:
Jesse Hills 2024-08-14 14:48:08 +12:00 committed by GitHub
parent 5e517bb13f
commit d24b5602bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,8 +48,8 @@ Configuration variables:
One of ``id`` or ``name`` is required. One of ``id`` or ``name`` is required.
- **id** (**Required**, :ref:`config-id`): Manually specify the ID used for code generation, allowing for further customization or interaction with this event within ESPHome scripts or lambda functions. - **id** (*Optional*, :ref:`config-id`): Manually specify the ID used for code generation. At least one of **id** and **name** must be specified.
- **name** (**Required**, string): The name for the event. - **name** (*Optional*, string): The name for the event. At least one of **id** and **name** must be specified.
.. note:: .. note::