From fab6e3534bd8f5c0dee2f1374335384fff49ac43 Mon Sep 17 00:00:00 2001 From: dougiteixeira <31328123+dougiteixeira@users.noreply.github.com> Date: Thu, 11 Jul 2024 05:11:56 -0300 Subject: [PATCH] Add config flow for switch platform in Template (#33669) --- source/_integrations/switch.template.markdown | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/source/_integrations/switch.template.markdown b/source/_integrations/switch.template.markdown index c5c067d5e75..2e0f771c2f1 100644 --- a/source/_integrations/switch.template.markdown +++ b/source/_integrations/switch.template.markdown @@ -7,6 +7,7 @@ ha_release: 0.13 ha_iot_class: Local Push ha_quality_scale: internal ha_domain: template +ha_config_flow: true --- The `template` platform creates switches that combines components. @@ -15,7 +16,19 @@ For example, if you have a garage door with a toggle switch that operates the mo This can simplify the GUI and make it easier to write automations. -## Configuration +{% include integrations/config_flow.md %} + +{% important %} +To be able to add **{% my helpers title="Helpers" %}** via the user interface, you should have `default_config:` in your {% term "`configuration.yaml`" %}. It should already be there by default unless you removed it. +{% endimportant %} + +{% note %} +Configuration using our user interface provides a more limited subset of options, making this integration more accessible while covering most use cases. + +If you need more specific features for your use case, the manual [YAML-configuration section](#yaml-configuration) of this integration might provide them. +{% endnote %} + +## YAML Configuration To enable Template Switches in your installation, add the following to your {% term "`configuration.yaml`" %} file: