mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
[CI] Consolidate some tests (N, O, P) (#8204)
This commit is contained in:
26
tests/components/pca9554/common.yaml
Normal file
26
tests/components/pca9554/common.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
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
|
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,26 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_pca9554
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
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
|
||||
<<: !include common.yaml
|
||||
|
Reference in New Issue
Block a user