From 80ac639f3fe2ec6639ef7ee7aab4f82ffb0f0dfe Mon Sep 17 00:00:00 2001 From: NewoPL <27411874+NewoPL@users.noreply.github.com> Date: Wed, 30 Oct 2024 22:27:07 +0100 Subject: [PATCH] [kp18058] add yaml tests --- tests/components/kp18058/common.yaml | 27 +++++++++++++++++++ tests/components/kp18058/test.esp32-ard.yaml | 1 + .../components/kp18058/test.esp32-c3-ard.yaml | 1 + .../components/kp18058/test.esp32-c3-idf.yaml | 1 + tests/components/kp18058/test.esp32-idf.yaml | 1 + .../components/kp18058/test.esp8266-ard.yaml | 1 + tests/components/kp18058/test.rp2040-ard.yaml | 1 + 7 files changed, 33 insertions(+) create mode 100644 tests/components/kp18058/common.yaml create mode 100644 tests/components/kp18058/test.esp32-ard.yaml create mode 100644 tests/components/kp18058/test.esp32-c3-ard.yaml create mode 100644 tests/components/kp18058/test.esp32-c3-idf.yaml create mode 100644 tests/components/kp18058/test.esp32-idf.yaml create mode 100644 tests/components/kp18058/test.esp8266-ard.yaml create mode 100644 tests/components/kp18058/test.rp2040-ard.yaml diff --git a/tests/components/kp18058/common.yaml b/tests/components/kp18058/common.yaml new file mode 100644 index 0000000000..ea729d2041 --- /dev/null +++ b/tests/components/kp18058/common.yaml @@ -0,0 +1,27 @@ +kp18058: + data_pin: 8 + clock_pin: 7 + cw_current: 8 + rgb_current: 5 + +output: + - platform: kp18058 + id: output_green + max_power: 75% + channel: 1 + - platform: kp18058 + id: output_blue + max_power: 90% + channel: 2 + - platform: kp18058 + id: output_red + max_power: 90% + channel: 3 + - platform: kp18058 + id: output_warm + max_power: 75% + channel: 4 + - platform: kp18058 + id: output_cold + max_power: 75% + channel: 5 diff --git a/tests/components/kp18058/test.esp32-ard.yaml b/tests/components/kp18058/test.esp32-ard.yaml new file mode 100644 index 0000000000..dade44d145 --- /dev/null +++ b/tests/components/kp18058/test.esp32-ard.yaml @@ -0,0 +1 @@ +<<: !include common.yaml diff --git a/tests/components/kp18058/test.esp32-c3-ard.yaml b/tests/components/kp18058/test.esp32-c3-ard.yaml new file mode 100644 index 0000000000..dade44d145 --- /dev/null +++ b/tests/components/kp18058/test.esp32-c3-ard.yaml @@ -0,0 +1 @@ +<<: !include common.yaml diff --git a/tests/components/kp18058/test.esp32-c3-idf.yaml b/tests/components/kp18058/test.esp32-c3-idf.yaml new file mode 100644 index 0000000000..dade44d145 --- /dev/null +++ b/tests/components/kp18058/test.esp32-c3-idf.yaml @@ -0,0 +1 @@ +<<: !include common.yaml diff --git a/tests/components/kp18058/test.esp32-idf.yaml b/tests/components/kp18058/test.esp32-idf.yaml new file mode 100644 index 0000000000..dade44d145 --- /dev/null +++ b/tests/components/kp18058/test.esp32-idf.yaml @@ -0,0 +1 @@ +<<: !include common.yaml diff --git a/tests/components/kp18058/test.esp8266-ard.yaml b/tests/components/kp18058/test.esp8266-ard.yaml new file mode 100644 index 0000000000..dade44d145 --- /dev/null +++ b/tests/components/kp18058/test.esp8266-ard.yaml @@ -0,0 +1 @@ +<<: !include common.yaml diff --git a/tests/components/kp18058/test.rp2040-ard.yaml b/tests/components/kp18058/test.rp2040-ard.yaml new file mode 100644 index 0000000000..dade44d145 --- /dev/null +++ b/tests/components/kp18058/test.rp2040-ard.yaml @@ -0,0 +1 @@ +<<: !include common.yaml