From f63d5487a1fcfb88b7bb57c1ad6de3e5d32b576e Mon Sep 17 00:00:00 2001 From: Anton Viktorov Date: Tue, 12 Mar 2024 17:19:18 +0100 Subject: [PATCH] tests added --- tests/components/bh1745/common.yaml | 16 ++++++++++++++++ tests/components/bh1745/test.esp32-c3-idf.yaml | 6 ++++++ tests/components/bh1745/test.esp32-c3.yaml | 6 ++++++ tests/components/bh1745/test.esp32-idf.yaml | 6 ++++++ tests/components/bh1745/test.esp32.yaml | 6 ++++++ tests/components/bh1745/test.esp8266.yaml | 6 ++++++ tests/components/bh1745/test.rp2040.yaml | 6 ++++++ 7 files changed, 52 insertions(+) create mode 100644 tests/components/bh1745/common.yaml create mode 100644 tests/components/bh1745/test.esp32-c3-idf.yaml create mode 100644 tests/components/bh1745/test.esp32-c3.yaml create mode 100644 tests/components/bh1745/test.esp32-idf.yaml create mode 100644 tests/components/bh1745/test.esp32.yaml create mode 100644 tests/components/bh1745/test.esp8266.yaml create mode 100644 tests/components/bh1745/test.rp2040.yaml diff --git a/tests/components/bh1745/common.yaml b/tests/components/bh1745/common.yaml new file mode 100644 index 0000000000..e14747e2fe --- /dev/null +++ b/tests/components/bh1745/common.yaml @@ -0,0 +1,16 @@ +sensor: + - platform: bh1745 + address: 0x38 + i2c_id: i2c_bh1745 + gain: 1X + integration_time: 160ms + red_channel: Red channel + green_channel: Green channel + blue_channel: Blue channel + clear_channel: Clear channel + illuminance: Illuminance + color_temperature: Color temperature + +switch: + - platform: bh1745 + name: BH1754 LED diff --git a/tests/components/bh1745/test.esp32-c3-idf.yaml b/tests/components/bh1745/test.esp32-c3-idf.yaml new file mode 100644 index 0000000000..3826ae5a53 --- /dev/null +++ b/tests/components/bh1745/test.esp32-c3-idf.yaml @@ -0,0 +1,6 @@ +i2c: + - id: i2c_bh1745 + scl: 5 + sda: 4 + +<<: !include common.yaml diff --git a/tests/components/bh1745/test.esp32-c3.yaml b/tests/components/bh1745/test.esp32-c3.yaml new file mode 100644 index 0000000000..3826ae5a53 --- /dev/null +++ b/tests/components/bh1745/test.esp32-c3.yaml @@ -0,0 +1,6 @@ +i2c: + - id: i2c_bh1745 + scl: 5 + sda: 4 + +<<: !include common.yaml diff --git a/tests/components/bh1745/test.esp32-idf.yaml b/tests/components/bh1745/test.esp32-idf.yaml new file mode 100644 index 0000000000..883ad0660a --- /dev/null +++ b/tests/components/bh1745/test.esp32-idf.yaml @@ -0,0 +1,6 @@ +i2c: + - id: i2c_bh1745 + scl: 16 + sda: 17 + +<<: !include common.yaml diff --git a/tests/components/bh1745/test.esp32.yaml b/tests/components/bh1745/test.esp32.yaml new file mode 100644 index 0000000000..883ad0660a --- /dev/null +++ b/tests/components/bh1745/test.esp32.yaml @@ -0,0 +1,6 @@ +i2c: + - id: i2c_bh1745 + scl: 16 + sda: 17 + +<<: !include common.yaml diff --git a/tests/components/bh1745/test.esp8266.yaml b/tests/components/bh1745/test.esp8266.yaml new file mode 100644 index 0000000000..3826ae5a53 --- /dev/null +++ b/tests/components/bh1745/test.esp8266.yaml @@ -0,0 +1,6 @@ +i2c: + - id: i2c_bh1745 + scl: 5 + sda: 4 + +<<: !include common.yaml diff --git a/tests/components/bh1745/test.rp2040.yaml b/tests/components/bh1745/test.rp2040.yaml new file mode 100644 index 0000000000..3826ae5a53 --- /dev/null +++ b/tests/components/bh1745/test.rp2040.yaml @@ -0,0 +1,6 @@ +i2c: + - id: i2c_bh1745 + scl: 5 + sda: 4 + +<<: !include common.yaml