[core][cover] Add register_apply_condition for conditions that only test the parent (#19540)

This commit is contained in:
J. Nick Koston
2026-09-24 11:00:59 +12:00
committed by GitHub
parent f4300d9cee
commit 807556171b
9 changed files with 264 additions and 91 deletions
+9 -3
View File
@@ -551,11 +551,17 @@ text:
update_interval: 1s
lambda: |
return std::string{"Hello!"};
# Exercise a register_apply_condition inside a trigger with a std::string
# argument, so ApplyCondition<std::string> is compiled.
set_action:
then:
- logger.log:
format: Template Text set to %s
args: ["x.c_str()"]
- if:
condition:
cover.is_open: template_cover_with_triggers
then:
- logger.log:
format: Template Text set to %s
args: ["x.c_str()"]
alarm_control_panel:
- platform: template