Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some components to the new testing framework (K) #6186

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 28 additions & 0 deletions tests/components/key_collector/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 1
- pin: 2
columns:
- pin: 3
- pin: 4
keys: "1234"
has_pulldowns: true

key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
28 changes: 28 additions & 0 deletions tests/components/key_collector/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 1
- pin: 2
columns:
- pin: 3
- pin: 4
keys: "1234"
has_pulldowns: true

key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
28 changes: 28 additions & 0 deletions tests/components/key_collector/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 12
- pin: 13
columns:
- pin: 14
- pin: 15
keys: "1234"
has_pulldowns: true

key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
28 changes: 28 additions & 0 deletions tests/components/key_collector/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 12
- pin: 13
columns:
- pin: 14
- pin: 15
keys: "1234"
has_pulldowns: true

key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
28 changes: 28 additions & 0 deletions tests/components/key_collector/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 12
- pin: 13
columns:
- pin: 14
- pin: 15
keys: "1234"
has_pulldowns: true

key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
28 changes: 28 additions & 0 deletions tests/components/key_collector/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
matrix_keypad:
id: keypad
rows:
- pin: 1
- pin: 2
columns:
- pin: 3
- pin: 4
keys: "1234"
has_pulldowns: true

key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4
on_progress:
- logger.log:
format: "input progress: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
on_result:
- logger.log:
format: "input result: '%s', started by '%c', ended by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]
on_timeout:
- logger.log:
format: "input timeout: '%s', started by '%c'"
args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
12 changes: 12 additions & 0 deletions tests/components/kmeteriso/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 5
sda: 4

sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s
12 changes: 12 additions & 0 deletions tests/components/kmeteriso/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 5
sda: 4

sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s
12 changes: 12 additions & 0 deletions tests/components/kmeteriso/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 16
sda: 17

sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s
12 changes: 12 additions & 0 deletions tests/components/kmeteriso/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 16
sda: 17

sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s
12 changes: 12 additions & 0 deletions tests/components/kmeteriso/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 5
sda: 4

sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s
12 changes: 12 additions & 0 deletions tests/components/kmeteriso/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
i2c:
- id: i2c_kmeteriso
scl: 5
sda: 4

sensor:
- platform: kmeteriso
temperature:
name: Outside Temperature
internal_temperature:
name: Internal Temperature
update_interval: 15s
15 changes: 15 additions & 0 deletions tests/components/kuntze/test.esp32-c3-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 4
rx_pin: 5
baud_rate: 9600

modbus:
flow_control_pin: 3

sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature
15 changes: 15 additions & 0 deletions tests/components/kuntze/test.esp32-c3.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 4
rx_pin: 5
baud_rate: 9600

modbus:
flow_control_pin: 3

sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature
15 changes: 15 additions & 0 deletions tests/components/kuntze/test.esp32-idf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 17
rx_pin: 16
baud_rate: 9600

modbus:
flow_control_pin: 13

sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature
15 changes: 15 additions & 0 deletions tests/components/kuntze/test.esp32.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 17
rx_pin: 16
baud_rate: 9600

modbus:
flow_control_pin: 13

sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature
15 changes: 15 additions & 0 deletions tests/components/kuntze/test.esp8266.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 4
rx_pin: 5
baud_rate: 9600

modbus:
flow_control_pin: 13

sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature
15 changes: 15 additions & 0 deletions tests/components/kuntze/test.rp2040.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
uart:
- id: uart_kuntze
tx_pin: 4
rx_pin: 5
baud_rate: 9600

modbus:
flow_control_pin: 3

sensor:
- platform: kuntze
ph:
name: Kuntze pH
temperature:
name: Kuntze temperature