mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
[CI] Consolidate some tests (S) (#8206)
This commit is contained in:
33
tests/components/sx1509/common.yaml
Normal file
33
tests/components/sx1509/common.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
i2c:
|
||||
- id: i2c_sx1509
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
sx1509:
|
||||
- id: sx1509_hub
|
||||
address: 0x3E
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
@@ -1,33 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_sx1509
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sx1509:
|
||||
- id: sx1509_hub
|
||||
address: 0x3E
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,33 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_sx1509
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sx1509:
|
||||
- id: sx1509_hub
|
||||
address: 0x3E
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,33 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_sx1509
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sx1509:
|
||||
- id: sx1509_hub
|
||||
address: 0x3E
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,33 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_sx1509
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
sx1509:
|
||||
- id: sx1509_hub
|
||||
address: 0x3E
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,33 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_sx1509
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sx1509:
|
||||
- id: sx1509_hub
|
||||
address: 0x3E
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,33 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_sx1509
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
sx1509:
|
||||
- id: sx1509_hub
|
||||
address: 0x3E
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 3
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Open Drain
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 0
|
||||
mode:
|
||||
output: true
|
||||
open_drain: true
|
||||
|
||||
- platform: gpio
|
||||
name: GPIO SX1509 Test Out Standard
|
||||
pin:
|
||||
sx1509: sx1509_hub
|
||||
number: 1
|
||||
mode:
|
||||
output: true
|
||||
<<: !include common.yaml
|
||||
|
Reference in New Issue
Block a user