mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
[template/text] Fix lambda config (#6655)
Co-authored-by: Clyde Stubbs <2366188+clydebarrow@users.noreply.github.com>
This commit is contained in:
@@ -149,6 +149,17 @@ text:
|
||||
min_length: 0
|
||||
max_length: 100
|
||||
mode: text
|
||||
- platform: template
|
||||
name: "Template text lambda"
|
||||
mode: text
|
||||
update_interval: 1s
|
||||
lambda: |
|
||||
return std::string{"Hello!"};
|
||||
set_action:
|
||||
then:
|
||||
- logger.log:
|
||||
format: Template Text set to %s
|
||||
args: ["x.c_str()"]
|
||||
|
||||
alarm_control_panel:
|
||||
- platform: template
|
||||
|
Reference in New Issue
Block a user