From 2de8f84d0097d56b61d4b22e70ee19db85c2ba33 Mon Sep 17 00:00:00 2001 From: Jonathan Swoboda <154711427+swoboda1337@users.noreply.github.com> Date: Sat, 28 Feb 2026 21:49:45 -0500 Subject: [PATCH] Fix schema annotations across misc component docs Templatable fixes: - analog_threshold: add missing comma before [templatable] on threshold, upper, lower fields - bm8563: add missing [templatable] to timer duration Required/Optional fixes (verified against source code): - nextion text_sensor: component_name is Required not Optional - ektf2232: reset_pin and interrupt_pin are Required not Optional - lilygo_t5_47: interrupt_pin is Required not Optional - tt21100: interrupt_pin is Optional not Required - sigma_delta_output: update_interval is Optional (default 60s) Co-Authored-By: Claude Opus 4.6 --- .../docs/components/binary_sensor/analog_threshold.mdx | 6 +++--- src/content/docs/components/output/sigma_delta_output.mdx | 2 +- src/content/docs/components/text_sensor/nextion.mdx | 2 +- src/content/docs/components/time/bm8563.mdx | 2 +- src/content/docs/components/touchscreen/ektf2232.mdx | 4 ++-- src/content/docs/components/touchscreen/lilygo_t5_47.mdx | 2 +- src/content/docs/components/touchscreen/tt21100.mdx | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/content/docs/components/binary_sensor/analog_threshold.mdx b/src/content/docs/components/binary_sensor/analog_threshold.mdx index ed273265e5..90799f7aa5 100644 --- a/src/content/docs/components/binary_sensor/analog_threshold.mdx +++ b/src/content/docs/components/binary_sensor/analog_threshold.mdx @@ -53,12 +53,12 @@ binary_sensor: ## Configuration variables - **sensor_id** (**Required**, [ID](/guides/configuration-types#id)): The ID of the source sensor. -- **threshold** (**Required**, float [templatable](/automations/templates) or mapping): Configures the reference for comparison. Accepts either a shorthand +- **threshold** (**Required**, float, [templatable](/automations/templates) or mapping): Configures the reference for comparison. Accepts either a shorthand float number that will be used as both upper/lower threshold, or a mapping to define different values for each (to use hysteresis). - - **upper** (**Required**, float [templatable](/automations/templates)): Upper threshold, that needs to be crossed to transition from `low` to `high` states. - - **lower** (**Required**, float [templatable](/automations/templates)): Lower threshold, that needs to be crossed to transition from `high` to `low` states. + - **upper** (**Required**, float, [templatable](/automations/templates)): Upper threshold, that needs to be crossed to transition from `low` to `high` states. + - **lower** (**Required**, float, [templatable](/automations/templates)): Lower threshold, that needs to be crossed to transition from `high` to `low` states. - All other options from [Binary Sensor](/components/binary_sensor#config-binary_sensor). ## See Also diff --git a/src/content/docs/components/output/sigma_delta_output.mdx b/src/content/docs/components/output/sigma_delta_output.mdx index fa58949370..bf53472236 100644 --- a/src/content/docs/components/output/sigma_delta_output.mdx +++ b/src/content/docs/components/output/sigma_delta_output.mdx @@ -59,7 +59,7 @@ output: Configuration variables: -- **update_interval** (**Required**, [Time](/guides/configuration-types#time)): The cycle interval at which the output is recalculated. +- **update_interval** (*Optional*, [Time](/guides/configuration-types#time)): The cycle interval at which the output is recalculated. Defaults to `60s`. - **pin** (*Optional*, [Pin Schema](/guides/configuration-types#pin-schema)): The pin to pulse. - **state_change_action** (*Optional*, [Automation](/automations)): An automation to perform when the load is switched. If a lambda is used the boolean `state` parameter holds the new status. - **turn_on_action** (*Optional*, [Automation](/automations)): An automation to perform when the load is turned on. Can be used to control for example a switch or output component. diff --git a/src/content/docs/components/text_sensor/nextion.mdx b/src/content/docs/components/text_sensor/nextion.mdx index d762586e00..c47c5c0115 100644 --- a/src/content/docs/components/text_sensor/nextion.mdx +++ b/src/content/docs/components/text_sensor/nextion.mdx @@ -32,7 +32,7 @@ text_sensor: ## Configuration variables - **nextion_id** (*Optional*, [ID](/guides/configuration-types#id)): The ID of the Nextion display. -- **component_name** (*Optional*, string): The name of the Nextion component. +- **component_name** (**Required**, string): The name of the Nextion component. - **update_interval** (*Optional*, [Time](/guides/configuration-types#time)): The duration to update the sensor. If using a [Nextion Custom Text Sensor Protocol](#nextion_custom_text_sensor_protocol) this should not be used - **background_color** (*Optional*, [Color](/components/display#config-color)): The background color - **foreground_color** (*Optional*, [Color](/components/display#config-color)): The foreground color diff --git a/src/content/docs/components/time/bm8563.mdx b/src/content/docs/components/time/bm8563.mdx index 005b94c94c..a844d29587 100644 --- a/src/content/docs/components/time/bm8563.mdx +++ b/src/content/docs/components/time/bm8563.mdx @@ -74,7 +74,7 @@ on_...: Configuration options: -- **duration** (**Required**, [Time](/guides/configuration-types#config-time)): The time duration for the timer. +- **duration** (**Required**, [Time](/guides/configuration-types#config-time), [templatable](/automations/templates)): The time duration for the timer. - **id** (*Optional*, [ID](/guides/configuration-types#config-id)): Manually specify the ID of the BM8563 component if you have multiple components. diff --git a/src/content/docs/components/touchscreen/ektf2232.mdx b/src/content/docs/components/touchscreen/ektf2232.mdx index bbc7ebeb88..45bd696e6e 100644 --- a/src/content/docs/components/touchscreen/ektf2232.mdx +++ b/src/content/docs/components/touchscreen/ektf2232.mdx @@ -20,8 +20,8 @@ touchscreen: ## Configuration variables - **id** (*Optional*, [ID](/guides/configuration-types#id)): Manually set the ID of this touchscreen. -- **reset_pin** (*Optional*, [Pin Schema](/guides/configuration-types#pin-schema)): The reset pin of the controller. -- **interrupt_pin** (*Optional*, [Pin Schema](/guides/configuration-types#pin-schema)): The touch detection pin. +- **reset_pin** (**Required**, [Pin Schema](/guides/configuration-types#pin-schema)): The reset pin of the controller. +- **interrupt_pin** (**Required**, [Pin Schema](/guides/configuration-types#pin-schema)): The touch detection pin. - All other options from [Base Touchscreen Configuration](/components/touchscreen#config-touchscreen). diff --git a/src/content/docs/components/touchscreen/lilygo_t5_47.mdx b/src/content/docs/components/touchscreen/lilygo_t5_47.mdx index 1c52f4b2e7..33499c9aa5 100644 --- a/src/content/docs/components/touchscreen/lilygo_t5_47.mdx +++ b/src/content/docs/components/touchscreen/lilygo_t5_47.mdx @@ -19,7 +19,7 @@ touchscreen: ## Configuration variables - **id** (*Optional*, [ID](/guides/configuration-types#id)): Manually set the ID of this touchscreen. -- **interrupt_pin** (*Optional*, [Pin Schema](/guides/configuration-types#pin-schema)): The touch detection pin. Must be `GPIO13`. +- **interrupt_pin** (**Required**, [Pin Schema](/guides/configuration-types#pin-schema)): The touch detection pin. Must be `GPIO13`. - All other options from [Base Touchscreen Configuration](/components/touchscreen#config-touchscreen). ## See Also diff --git a/src/content/docs/components/touchscreen/tt21100.mdx b/src/content/docs/components/touchscreen/tt21100.mdx index 5edfeb7c88..ffc223198d 100644 --- a/src/content/docs/components/touchscreen/tt21100.mdx +++ b/src/content/docs/components/touchscreen/tt21100.mdx @@ -42,7 +42,7 @@ touchscreen: ### Configuration variables - **id** (*Optional*, [ID](/guides/configuration-types#id)): Manually set the ID of this touchscreen. -- **interrupt_pin** (**Required**, [Pin Schema](/guides/configuration-types#pin-schema)): The touch detection pin. +- **interrupt_pin** (*Optional*, [Pin Schema](/guides/configuration-types#pin-schema)): The touch detection pin. - **reset_pin** (*Optional*, [Pin Schema](/guides/configuration-types#pin-schema)): The reset pin of the controller. - All other options from [Touchscreen](/components/touchscreen#config-touchscreen).