mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 11:22:24 +01:00
[CI] Consolidate some tests (Q, R) (#8205)
This commit is contained in:
17
tests/components/rc522_i2c/common.yaml
Normal file
17
tests/components/rc522_i2c/common.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 16
|
||||
sda: 17
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,17 +1,5 @@
|
||||
i2c:
|
||||
- id: i2c_rc522
|
||||
scl: 5
|
||||
sda: 4
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
|
||||
rc522_i2c:
|
||||
- id: rc522_nfcc
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
|
||||
binary_sensor:
|
||||
- platform: rc522
|
||||
rc522_id: rc522_nfcc
|
||||
name: RC522 NFC Tag
|
||||
uid: 74-10-37-94
|
||||
<<: !include common.yaml
|
||||
|
Reference in New Issue
Block a user