Add config flow for switch platform in Template (#33669)

This commit is contained in:
dougiteixeira 2024-07-11 05:11:56 -03:00 committed by GitHub
parent 77410e8178
commit fab6e3534b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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