From 8619852a28f98a1aa82027fadeab7ca5607ef21b Mon Sep 17 00:00:00 2001 From: brisk Date: Sun, 6 Oct 2024 17:15:28 +1030 Subject: [PATCH] pulse_counter_ulp: Add tests Modified from pulse_counter, reduced in scope to esp32 --- tests/components/pulse_counter_ulp/test.esp32-idf.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/components/pulse_counter_ulp/test.esp32-idf.yaml diff --git a/tests/components/pulse_counter_ulp/test.esp32-idf.yaml b/tests/components/pulse_counter_ulp/test.esp32-idf.yaml new file mode 100644 index 0000000000..c63294c0c4 --- /dev/null +++ b/tests/components/pulse_counter_ulp/test.esp32-idf.yaml @@ -0,0 +1,10 @@ +sensor: + - platform: pulse_counter_ulp + name: Pulse Counter ULP + pin: 4 + count_mode: + rising_edge: INCREMENT + falling_edge: DECREMENT + sleep_duration: 13ms + debounce: 4 + update_interval: 15s