mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
Add some components to the new testing framework (M part 1) (#6207)
This commit is contained in:
23
tests/components/mcp23008/test.esp32-c3-idf.yaml
Normal file
23
tests/components/mcp23008/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
i2c:
|
||||
- id: i2c_mcp23008
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
mcp23008:
|
||||
id: mcp23008_hub
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: mcp23008_binary_sensor
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 0
|
||||
mode: INPUT
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: mcp23008_switch
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 1
|
||||
mode: OUTPUT
|
23
tests/components/mcp23008/test.esp32-c3.yaml
Normal file
23
tests/components/mcp23008/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
i2c:
|
||||
- id: i2c_mcp23008
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
mcp23008:
|
||||
id: mcp23008_hub
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: mcp23008_binary_sensor
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 0
|
||||
mode: INPUT
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: mcp23008_switch
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 1
|
||||
mode: OUTPUT
|
23
tests/components/mcp23008/test.esp32-idf.yaml
Normal file
23
tests/components/mcp23008/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
i2c:
|
||||
- id: i2c_mcp23008
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
mcp23008:
|
||||
id: mcp23008_hub
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: mcp23008_binary_sensor
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 0
|
||||
mode: INPUT
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: mcp23008_switch
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 1
|
||||
mode: OUTPUT
|
23
tests/components/mcp23008/test.esp32.yaml
Normal file
23
tests/components/mcp23008/test.esp32.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
i2c:
|
||||
- id: i2c_mcp23008
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
mcp23008:
|
||||
id: mcp23008_hub
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: mcp23008_binary_sensor
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 0
|
||||
mode: INPUT
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: mcp23008_switch
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 1
|
||||
mode: OUTPUT
|
23
tests/components/mcp23008/test.esp8266.yaml
Normal file
23
tests/components/mcp23008/test.esp8266.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
i2c:
|
||||
- id: i2c_mcp23008
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
mcp23008:
|
||||
id: mcp23008_hub
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: mcp23008_binary_sensor
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 0
|
||||
mode: INPUT
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: mcp23008_switch
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 1
|
||||
mode: OUTPUT
|
23
tests/components/mcp23008/test.rp2040.yaml
Normal file
23
tests/components/mcp23008/test.rp2040.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
i2c:
|
||||
- id: i2c_mcp23008
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
mcp23008:
|
||||
id: mcp23008_hub
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
id: mcp23008_binary_sensor
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 0
|
||||
mode: INPUT
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: mcp23008_switch
|
||||
pin:
|
||||
mcp23xxx: mcp23008_hub
|
||||
number: 1
|
||||
mode: OUTPUT
|
Reference in New Issue
Block a user