From e7f86e4fc314b2072770b6bd305161339729db82 Mon Sep 17 00:00:00 2001 From: brisk Date: Sun, 17 Nov 2024 21:03:58 +1030 Subject: [PATCH] pulse_counter_ulp: Add test specific to esp32-s3 --- tests/components/pulse_counter_ulp/common.yaml | 10 ++++++++++ .../components/pulse_counter_ulp/test.esp32-idf.yaml | 11 +---------- .../pulse_counter_ulp/test.esp32-s3-idf.yaml | 1 + 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 tests/components/pulse_counter_ulp/common.yaml create mode 100644 tests/components/pulse_counter_ulp/test.esp32-s3-idf.yaml diff --git a/tests/components/pulse_counter_ulp/common.yaml b/tests/components/pulse_counter_ulp/common.yaml new file mode 100644 index 0000000000..c63294c0c4 --- /dev/null +++ b/tests/components/pulse_counter_ulp/common.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 diff --git a/tests/components/pulse_counter_ulp/test.esp32-idf.yaml b/tests/components/pulse_counter_ulp/test.esp32-idf.yaml index c63294c0c4..dade44d145 100644 --- a/tests/components/pulse_counter_ulp/test.esp32-idf.yaml +++ b/tests/components/pulse_counter_ulp/test.esp32-idf.yaml @@ -1,10 +1 @@ -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 +<<: !include common.yaml diff --git a/tests/components/pulse_counter_ulp/test.esp32-s3-idf.yaml b/tests/components/pulse_counter_ulp/test.esp32-s3-idf.yaml new file mode 100644 index 0000000000..dade44d145 --- /dev/null +++ b/tests/components/pulse_counter_ulp/test.esp32-s3-idf.yaml @@ -0,0 +1 @@ +<<: !include common.yaml