Add filter_source_files_from_defines helper, click trigger test coverage

This commit is contained in:
J. Nick Koston
2026-08-21 14:20:37 -05:00
parent 4e250a654c
commit 41688a8e17
10 changed files with 115 additions and 63 deletions
@@ -136,3 +136,19 @@ binary_sensor:
invalid_cooldown: 2s
then:
- logger.log: "Click with custom cooldown"
# Test on_click and on_double_click (compiles match_interval via
# USE_BINARY_SENSOR_CLICK_TRIGGER)
- platform: template
id: click_triggers
name: "Click Triggers"
on_click:
min_length: 50ms
max_length: 350ms
then:
- logger.log: "Clicked"
on_double_click:
min_length: 50ms
max_length: 350ms
then:
- logger.log: "Double clicked"