Skip to content

Commit

Permalink
Add some components to the new testing framework (P) (#6213)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbx81 committed Apr 23, 2024
1 parent 8eeb28d commit 057f473
Show file tree
Hide file tree
Showing 173 changed files with 5,245 additions and 0 deletions.
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

0 comments on commit 057f473

Please sign in to comment.