Skip to content

Commit

Permalink
Add some components to the new testing framework (Q)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbx81 committed Feb 20, 2024
1 parent edd1678 commit 9e92861
Show file tree
Hide file tree
Showing 24 changed files with 360 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/components/qmc5883l/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
i2c:
- id: i2c_qmc5883l
scl: 5
sda: 4

sensor:
- platform: qmc5883l
address: 0x0D
field_strength_x:
name: QMC5883L Field Strength X
field_strength_y:
name: QMC5883L Field Strength Y
field_strength_z:
name: QMC5883L Field Strength Z
heading:
name: QMC5883L Heading
range: 800uT
oversampling: 256x
update_interval: 15s
19 changes: 19 additions & 0 deletions tests/components/qmc5883l/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
i2c:
- id: i2c_qmc5883l
scl: 5
sda: 4

sensor:
- platform: qmc5883l
address: 0x0D
field_strength_x:
name: QMC5883L Field Strength X
field_strength_y:
name: QMC5883L Field Strength Y
field_strength_z:
name: QMC5883L Field Strength Z
heading:
name: QMC5883L Heading
range: 800uT
oversampling: 256x
update_interval: 15s
19 changes: 19 additions & 0 deletions tests/components/qmc5883l/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
i2c:
- id: i2c_qmc5883l
scl: 16
sda: 17

sensor:
- platform: qmc5883l
address: 0x0D
field_strength_x:
name: QMC5883L Field Strength X
field_strength_y:
name: QMC5883L Field Strength Y
field_strength_z:
name: QMC5883L Field Strength Z
heading:
name: QMC5883L Heading
range: 800uT
oversampling: 256x
update_interval: 15s
19 changes: 19 additions & 0 deletions tests/components/qmc5883l/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
i2c:
- id: i2c_qmc5883l
scl: 16
sda: 17

sensor:
- platform: qmc5883l
address: 0x0D
field_strength_x:
name: QMC5883L Field Strength X
field_strength_y:
name: QMC5883L Field Strength Y
field_strength_z:
name: QMC5883L Field Strength Z
heading:
name: QMC5883L Heading
range: 800uT
oversampling: 256x
update_interval: 15s
19 changes: 19 additions & 0 deletions tests/components/qmc5883l/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
i2c:
- id: i2c_qmc5883l
scl: 5
sda: 4

sensor:
- platform: qmc5883l
address: 0x0D
field_strength_x:
name: QMC5883L Field Strength X
field_strength_y:
name: QMC5883L Field Strength Y
field_strength_z:
name: QMC5883L Field Strength Z
heading:
name: QMC5883L Heading
range: 800uT
oversampling: 256x
update_interval: 15s
19 changes: 19 additions & 0 deletions tests/components/qmc5883l/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
i2c:
- id: i2c_qmc5883l
scl: 5
sda: 4

sensor:
- platform: qmc5883l
address: 0x0D
field_strength_x:
name: QMC5883L Field Strength X
field_strength_y:
name: QMC5883L Field Strength Y
field_strength_z:
name: QMC5883L Field Strength Z
heading:
name: QMC5883L Heading
range: 800uT
oversampling: 256x
update_interval: 15s
16 changes: 16 additions & 0 deletions tests/components/qmp6988/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
i2c:
- id: i2c_qmp6988
scl: 5
sda: 4

sensor:
- platform: qmp6988
temperature:
name: QMP6988 Temperature
oversampling: 32x
pressure:
name: QMP6988 Pressure
oversampling: 2x
address: 0x70
update_interval: 30s
iir_filter: 16x
16 changes: 16 additions & 0 deletions tests/components/qmp6988/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
i2c:
- id: i2c_qmp6988
scl: 5
sda: 4

sensor:
- platform: qmp6988
temperature:
name: QMP6988 Temperature
oversampling: 32x
pressure:
name: QMP6988 Pressure
oversampling: 2x
address: 0x70
update_interval: 30s
iir_filter: 16x
16 changes: 16 additions & 0 deletions tests/components/qmp6988/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
i2c:
- id: i2c_qmp6988
scl: 16
sda: 17

sensor:
- platform: qmp6988
temperature:
name: QMP6988 Temperature
oversampling: 32x
pressure:
name: QMP6988 Pressure
oversampling: 2x
address: 0x70
update_interval: 30s
iir_filter: 16x
16 changes: 16 additions & 0 deletions tests/components/qmp6988/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
i2c:
- id: i2c_qmp6988
scl: 16
sda: 17

sensor:
- platform: qmp6988
temperature:
name: QMP6988 Temperature
oversampling: 32x
pressure:
name: QMP6988 Pressure
oversampling: 2x
address: 0x70
update_interval: 30s
iir_filter: 16x
16 changes: 16 additions & 0 deletions tests/components/qmp6988/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
i2c:
- id: i2c_qmp6988
scl: 5
sda: 4

sensor:
- platform: qmp6988
temperature:
name: QMP6988 Temperature
oversampling: 32x
pressure:
name: QMP6988 Pressure
oversampling: 2x
address: 0x70
update_interval: 30s
iir_filter: 16x
16 changes: 16 additions & 0 deletions tests/components/qmp6988/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
i2c:
- id: i2c_qmp6988
scl: 5
sda: 4

sensor:
- platform: qmp6988
temperature:
name: QMP6988 Temperature
oversampling: 32x
pressure:
name: QMP6988 Pressure
oversampling: 2x
address: 0x70
update_interval: 30s
iir_filter: 16x
17 changes: 17 additions & 0 deletions tests/components/qr_code/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
spi:
- id: spi_main_lcd
clk_pin: 6
mosi_pin: 7
miso_pin: 5

display:
- platform: ili9xxx
id: main_lcd
model: ili9342
cs_pin: 8
dc_pin: 9
reset_pin: 10

qr_code:
- id: homepage_qr
value: https://esphome.io/index.html
17 changes: 17 additions & 0 deletions tests/components/qr_code/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
spi:
- id: spi_main_lcd
clk_pin: 6
mosi_pin: 7
miso_pin: 5

display:
- platform: ili9xxx
id: main_lcd
model: ili9342
cs_pin: 8
dc_pin: 9
reset_pin: 10

qr_code:
- id: homepage_qr
value: https://esphome.io/index.html
17 changes: 17 additions & 0 deletions tests/components/qr_code/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
spi:
- id: spi_main_lcd
clk_pin: 16
mosi_pin: 17
miso_pin: 15

display:
- platform: ili9xxx
id: main_lcd
model: ili9342
cs_pin: 12
dc_pin: 13
reset_pin: 21

qr_code:
- id: homepage_qr
value: https://esphome.io/index.html
17 changes: 17 additions & 0 deletions tests/components/qr_code/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
spi:
- id: spi_main_lcd
clk_pin: 16
mosi_pin: 17
miso_pin: 15

display:
- platform: ili9xxx
id: main_lcd
model: ili9342
cs_pin: 12
dc_pin: 13
reset_pin: 21

qr_code:
- id: homepage_qr
value: https://esphome.io/index.html
17 changes: 17 additions & 0 deletions tests/components/qr_code/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
spi:
- id: spi_main_lcd
clk_pin: 14
mosi_pin: 13
miso_pin: 12

display:
- platform: ili9xxx
id: main_lcd
model: ili9342
cs_pin: 5
dc_pin: 15
reset_pin: 16

qr_code:
- id: homepage_qr
value: https://esphome.io/index.html
17 changes: 17 additions & 0 deletions tests/components/qr_code/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
spi:
- id: spi_main_lcd
clk_pin: 2
mosi_pin: 3
miso_pin: 4

display:
- platform: ili9xxx
id: main_lcd
model: ili9342
cs_pin: 20
dc_pin: 21
reset_pin: 22

qr_code:
- id: homepage_qr
value: https://esphome.io/index.html
8 changes: 8 additions & 0 deletions tests/components/qwiic_pir/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
i2c:
- id: i2c_qwiic_pir
scl: 5
sda: 4

binary_sensor:
- platform: qwiic_pir
name: Qwiic PIR Motion Sensor
8 changes: 8 additions & 0 deletions tests/components/qwiic_pir/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
i2c:
- id: i2c_qwiic_pir
scl: 5
sda: 4

binary_sensor:
- platform: qwiic_pir
name: Qwiic PIR Motion Sensor
8 changes: 8 additions & 0 deletions tests/components/qwiic_pir/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
i2c:
- id: i2c_qwiic_pir
scl: 16
sda: 17

binary_sensor:
- platform: qwiic_pir
name: Qwiic PIR Motion Sensor
8 changes: 8 additions & 0 deletions tests/components/qwiic_pir/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
i2c:
- id: i2c_qwiic_pir
scl: 16
sda: 17

binary_sensor:
- platform: qwiic_pir
name: Qwiic PIR Motion Sensor
8 changes: 8 additions & 0 deletions tests/components/qwiic_pir/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
i2c:
- id: i2c_qwiic_pir
scl: 5
sda: 4

binary_sensor:
- platform: qwiic_pir
name: Qwiic PIR Motion Sensor
8 changes: 8 additions & 0 deletions tests/components/qwiic_pir/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
i2c:
- id: i2c_qwiic_pir
scl: 5
sda: 4

binary_sensor:
- platform: qwiic_pir
name: Qwiic PIR Motion Sensor

0 comments on commit 9e92861

Please sign in to comment.