Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some components to the new testing framework (P) #6213

Merged
merged 3 commits into from
Apr 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions tests/components/partition/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
light:
- platform: esp32_rmt_led_strip
id: part_leds
default_transition_length: 500ms
chipset: ws2812
rgb_order: GRB
num_leds: 256
pin: 2
rmt_channel: 0
- platform: partition
name: Partition Light
segments:
- id: part_leds
from: 0
to: 0
- id: part_leds
from: 1
to: 10
- id: part_leds
from: 20
to: 25
- single_light_id: part_leds
22 changes: 22 additions & 0 deletions tests/components/partition/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
light:
- platform: esp32_rmt_led_strip
id: part_leds
default_transition_length: 500ms
chipset: ws2812
rgb_order: GRB
num_leds: 256
pin: 2
rmt_channel: 0
- platform: partition
name: Partition Light
segments:
- id: part_leds
from: 0
to: 0
- id: part_leds
from: 1
to: 10
- id: part_leds
from: 20
to: 25
- single_light_id: part_leds
22 changes: 22 additions & 0 deletions tests/components/partition/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
light:
- platform: esp32_rmt_led_strip
id: part_leds
default_transition_length: 500ms
chipset: ws2812
rgb_order: GRB
num_leds: 256
pin: 2
rmt_channel: 0
- platform: partition
name: Partition Light
segments:
- id: part_leds
from: 0
to: 0
- id: part_leds
from: 1
to: 10
- id: part_leds
from: 20
to: 25
- single_light_id: part_leds
22 changes: 22 additions & 0 deletions tests/components/partition/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
light:
- platform: fastled_clockless
id: part_leds
chipset: WS2812B
pin: 2
num_leds: 256
rgb_order: GRB
default_transition_length: 0s
color_correct: [50%, 50%, 50%]
- platform: partition
name: Partition Light
segments:
- id: part_leds
from: 0
to: 0
- id: part_leds
from: 1
to: 10
- id: part_leds
from: 20
to: 25
- single_light_id: part_leds
17 changes: 17 additions & 0 deletions tests/components/pca6416a/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
i2c:
- id: i2c_pca6416a
scl: 5
sda: 4

pca6416a:
- id: pca6416a_hub
address: 0x21

binary_sensor:
- platform: gpio
name: PCA6416A Binary Sensor
pin:
pca6416a: pca6416a_hub
number: 15
mode: INPUT
inverted: true
17 changes: 17 additions & 0 deletions tests/components/pca6416a/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
i2c:
- id: i2c_pca6416a
scl: 5
sda: 4

pca6416a:
- id: pca6416a_hub
address: 0x21

binary_sensor:
- platform: gpio
name: PCA6416A Binary Sensor
pin:
pca6416a: pca6416a_hub
number: 15
mode: INPUT
inverted: true
17 changes: 17 additions & 0 deletions tests/components/pca6416a/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
i2c:
- id: i2c_pca6416a
scl: 16
sda: 17

pca6416a:
- id: pca6416a_hub
address: 0x21

binary_sensor:
- platform: gpio
name: PCA6416A Binary Sensor
pin:
pca6416a: pca6416a_hub
number: 15
mode: INPUT
inverted: true
17 changes: 17 additions & 0 deletions tests/components/pca6416a/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
i2c:
- id: i2c_pca6416a
scl: 16
sda: 17

pca6416a:
- id: pca6416a_hub
address: 0x21

binary_sensor:
- platform: gpio
name: PCA6416A Binary Sensor
pin:
pca6416a: pca6416a_hub
number: 15
mode: INPUT
inverted: true
17 changes: 17 additions & 0 deletions tests/components/pca6416a/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
i2c:
- id: i2c_pca6416a
scl: 5
sda: 4

pca6416a:
- id: pca6416a_hub
address: 0x21

binary_sensor:
- platform: gpio
name: PCA6416A Binary Sensor
pin:
pca6416a: pca6416a_hub
number: 15
mode: INPUT
inverted: true
17 changes: 17 additions & 0 deletions tests/components/pca6416a/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
i2c:
- id: i2c_pca6416a
scl: 5
sda: 4

pca6416a:
- id: pca6416a_hub
address: 0x21

binary_sensor:
- platform: gpio
name: PCA6416A Binary Sensor
pin:
pca6416a: pca6416a_hub
number: 15
mode: INPUT
inverted: true
26 changes: 26 additions & 0 deletions tests/components/pca9554/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
i2c:
- id: i2c_pca9554
scl: 5
sda: 4

pca9554:
- id: pca9554_hub
pin_count: 8
address: 0x3F

binary_sensor:
- platform: gpio
id: pca9554_input
name: PCA9554 Binary Sensor
pin:
pca9554: pca9554_hub
number: 1
mode: INPUT
inverted: true
- platform: gpio
id: pca9554_output
pin:
pca9554: pca9554_hub
number: 0
mode: OUTPUT
inverted: false
26 changes: 26 additions & 0 deletions tests/components/pca9554/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
i2c:
- id: i2c_pca9554
scl: 5
sda: 4

pca9554:
- id: pca9554_hub
pin_count: 8
address: 0x3F

binary_sensor:
- platform: gpio
id: pca9554_input
name: PCA9554 Binary Sensor
pin:
pca9554: pca9554_hub
number: 1
mode: INPUT
inverted: true
- platform: gpio
id: pca9554_output
pin:
pca9554: pca9554_hub
number: 0
mode: OUTPUT
inverted: false
26 changes: 26 additions & 0 deletions tests/components/pca9554/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
i2c:
- id: i2c_pca9554
scl: 16
sda: 17

pca9554:
- id: pca9554_hub
pin_count: 8
address: 0x3F

binary_sensor:
- platform: gpio
id: pca9554_input
name: PCA9554 Binary Sensor
pin:
pca9554: pca9554_hub
number: 1
mode: INPUT
inverted: true
- platform: gpio
id: pca9554_output
pin:
pca9554: pca9554_hub
number: 0
mode: OUTPUT
inverted: false
26 changes: 26 additions & 0 deletions tests/components/pca9554/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
i2c:
- id: i2c_pca9554
scl: 16
sda: 17

pca9554:
- id: pca9554_hub
pin_count: 8
address: 0x3F

binary_sensor:
- platform: gpio
id: pca9554_input
name: PCA9554 Binary Sensor
pin:
pca9554: pca9554_hub
number: 1
mode: INPUT
inverted: true
- platform: gpio
id: pca9554_output
pin:
pca9554: pca9554_hub
number: 0
mode: OUTPUT
inverted: false
26 changes: 26 additions & 0 deletions tests/components/pca9554/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
i2c:
- id: i2c_pca9554
scl: 5
sda: 4

pca9554:
- id: pca9554_hub
pin_count: 8
address: 0x3F

binary_sensor:
- platform: gpio
id: pca9554_input
name: PCA9554 Binary Sensor
pin:
pca9554: pca9554_hub
number: 1
mode: INPUT
inverted: true
- platform: gpio
id: pca9554_output
pin:
pca9554: pca9554_hub
number: 0
mode: OUTPUT
inverted: false
26 changes: 26 additions & 0 deletions tests/components/pca9554/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
i2c:
- id: i2c_pca9554
scl: 5
sda: 4

pca9554:
- id: pca9554_hub
pin_count: 8
address: 0x3F

binary_sensor:
- platform: gpio
id: pca9554_input
name: PCA9554 Binary Sensor
pin:
pca9554: pca9554_hub
number: 1
mode: INPUT
inverted: true
- platform: gpio
id: pca9554_output
pin:
pca9554: pca9554_hub
number: 0
mode: OUTPUT
inverted: false
34 changes: 34 additions & 0 deletions tests/components/pca9685/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
i2c:
- id: i2c_pca9685
scl: 5
sda: 4

pca9685:
frequency: 500
address: 0x0

output:
- platform: pca9685
id: pca_0
channel: 0
- platform: pca9685
id: pca_1
channel: 1
- platform: pca9685
id: pca_2
channel: 2
- platform: pca9685
id: pca_3
channel: 3
- platform: pca9685
id: pca_4
channel: 4
- platform: pca9685
id: pca_5
channel: 5
- platform: pca9685
id: pca_6
channel: 6
- platform: pca9685
id: pca_7
channel: 7