mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
[CI] Consolidate some tests (N, O, P) (#8204)
This commit is contained in:
35
tests/components/pn7150_i2c/common.yaml
Normal file
35
tests/components/pn7150_i2c/common.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- tag.set_clean_mode: nfcc_pn7150
|
||||
- tag.set_format_mode: nfcc_pn7150
|
||||
- tag.set_read_mode: nfcc_pn7150
|
||||
- tag.set_write_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.set_write_mode: nfcc_pn7150
|
||||
- tag.set_emulation_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.emulation_off: nfcc_pn7150
|
||||
- tag.emulation_on: nfcc_pn7150
|
||||
- tag.polling_off: nfcc_pn7150
|
||||
- tag.polling_on: nfcc_pn7150
|
||||
|
||||
i2c:
|
||||
- id: i2c_pn7150
|
||||
scl: ${scl_pin}
|
||||
sda: ${sda_pin}
|
||||
|
||||
pn7150_i2c:
|
||||
id: nfcc_pn7150
|
||||
irq_pin: ${irq_pin}
|
||||
ven_pin: ${ven_pin}
|
||||
emulation_message: https://www.home-assistant.io/tag/pulse_ce
|
||||
tag_ttl: 1000ms
|
||||
on_tag:
|
||||
- logger.log: "Tag"
|
||||
on_tag_removed:
|
||||
- logger.log: "Tag removed"
|
||||
on_emulated_tag_scan:
|
||||
- logger.log: "Tag emulated"
|
@@ -1,35 +1,7 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- tag.set_clean_mode: nfcc_pn7150
|
||||
- tag.set_format_mode: nfcc_pn7150
|
||||
- tag.set_read_mode: nfcc_pn7150
|
||||
- tag.set_write_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.set_write_mode: nfcc_pn7150
|
||||
- tag.set_emulation_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.emulation_off: nfcc_pn7150
|
||||
- tag.emulation_on: nfcc_pn7150
|
||||
- tag.polling_off: nfcc_pn7150
|
||||
- tag.polling_on: nfcc_pn7150
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
irq_pin: GPIO14
|
||||
ven_pin: GPIO15
|
||||
|
||||
i2c:
|
||||
- id: i2c_pn7150
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
pn7150_i2c:
|
||||
id: nfcc_pn7150
|
||||
irq_pin: 12
|
||||
ven_pin: 13
|
||||
emulation_message: https://www.home-assistant.io/tag/pulse_ce
|
||||
tag_ttl: 1000ms
|
||||
on_tag:
|
||||
- logger.log: "Tag"
|
||||
on_tag_removed:
|
||||
- logger.log: "Tag removed"
|
||||
on_emulated_tag_scan:
|
||||
- logger.log: "Tag emulated"
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,35 +1,7 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- tag.set_clean_mode: nfcc_pn7150
|
||||
- tag.set_format_mode: nfcc_pn7150
|
||||
- tag.set_read_mode: nfcc_pn7150
|
||||
- tag.set_write_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.set_write_mode: nfcc_pn7150
|
||||
- tag.set_emulation_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.emulation_off: nfcc_pn7150
|
||||
- tag.emulation_on: nfcc_pn7150
|
||||
- tag.polling_off: nfcc_pn7150
|
||||
- tag.polling_on: nfcc_pn7150
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
irq_pin: GPIO6
|
||||
ven_pin: GPIO7
|
||||
|
||||
i2c:
|
||||
- id: i2c_pn7150
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pn7150_i2c:
|
||||
id: nfcc_pn7150
|
||||
irq_pin: 2
|
||||
ven_pin: 3
|
||||
emulation_message: https://www.home-assistant.io/tag/pulse_ce
|
||||
tag_ttl: 1000ms
|
||||
on_tag:
|
||||
- logger.log: "Tag"
|
||||
on_tag_removed:
|
||||
- logger.log: "Tag removed"
|
||||
on_emulated_tag_scan:
|
||||
- logger.log: "Tag emulated"
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,35 +1,7 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- tag.set_clean_mode: nfcc_pn7150
|
||||
- tag.set_format_mode: nfcc_pn7150
|
||||
- tag.set_read_mode: nfcc_pn7150
|
||||
- tag.set_write_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.set_write_mode: nfcc_pn7150
|
||||
- tag.set_emulation_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.emulation_off: nfcc_pn7150
|
||||
- tag.emulation_on: nfcc_pn7150
|
||||
- tag.polling_off: nfcc_pn7150
|
||||
- tag.polling_on: nfcc_pn7150
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
irq_pin: GPIO6
|
||||
ven_pin: GPIO7
|
||||
|
||||
i2c:
|
||||
- id: i2c_pn7150
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pn7150_i2c:
|
||||
id: nfcc_pn7150
|
||||
irq_pin: 2
|
||||
ven_pin: 3
|
||||
emulation_message: https://www.home-assistant.io/tag/pulse_ce
|
||||
tag_ttl: 1000ms
|
||||
on_tag:
|
||||
- logger.log: "Tag"
|
||||
on_tag_removed:
|
||||
- logger.log: "Tag removed"
|
||||
on_emulated_tag_scan:
|
||||
- logger.log: "Tag emulated"
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,35 +1,7 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- tag.set_clean_mode: nfcc_pn7150
|
||||
- tag.set_format_mode: nfcc_pn7150
|
||||
- tag.set_read_mode: nfcc_pn7150
|
||||
- tag.set_write_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.set_write_mode: nfcc_pn7150
|
||||
- tag.set_emulation_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.emulation_off: nfcc_pn7150
|
||||
- tag.emulation_on: nfcc_pn7150
|
||||
- tag.polling_off: nfcc_pn7150
|
||||
- tag.polling_on: nfcc_pn7150
|
||||
substitutions:
|
||||
scl_pin: GPIO16
|
||||
sda_pin: GPIO17
|
||||
irq_pin: GPIO14
|
||||
ven_pin: GPIO15
|
||||
|
||||
i2c:
|
||||
- id: i2c_pn7150
|
||||
scl: 16
|
||||
sda: 17
|
||||
|
||||
pn7150_i2c:
|
||||
id: nfcc_pn7150
|
||||
irq_pin: 12
|
||||
ven_pin: 13
|
||||
emulation_message: https://www.home-assistant.io/tag/pulse_ce
|
||||
tag_ttl: 1000ms
|
||||
on_tag:
|
||||
- logger.log: "Tag"
|
||||
on_tag_removed:
|
||||
- logger.log: "Tag removed"
|
||||
on_emulated_tag_scan:
|
||||
- logger.log: "Tag emulated"
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,35 +1,7 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- tag.set_clean_mode: nfcc_pn7150
|
||||
- tag.set_format_mode: nfcc_pn7150
|
||||
- tag.set_read_mode: nfcc_pn7150
|
||||
- tag.set_write_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.set_write_mode: nfcc_pn7150
|
||||
- tag.set_emulation_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.emulation_off: nfcc_pn7150
|
||||
- tag.emulation_on: nfcc_pn7150
|
||||
- tag.polling_off: nfcc_pn7150
|
||||
- tag.polling_on: nfcc_pn7150
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
irq_pin: GPIO12
|
||||
ven_pin: GPIO13
|
||||
|
||||
i2c:
|
||||
- id: i2c_pn7150
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pn7150_i2c:
|
||||
id: nfcc_pn7150
|
||||
irq_pin: 12
|
||||
ven_pin: 13
|
||||
emulation_message: https://www.home-assistant.io/tag/pulse_ce
|
||||
tag_ttl: 1000ms
|
||||
on_tag:
|
||||
- logger.log: "Tag"
|
||||
on_tag_removed:
|
||||
- logger.log: "Tag removed"
|
||||
on_emulated_tag_scan:
|
||||
- logger.log: "Tag emulated"
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,35 +1,7 @@
|
||||
esphome:
|
||||
on_boot:
|
||||
then:
|
||||
- tag.set_clean_mode: nfcc_pn7150
|
||||
- tag.set_format_mode: nfcc_pn7150
|
||||
- tag.set_read_mode: nfcc_pn7150
|
||||
- tag.set_write_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.set_write_mode: nfcc_pn7150
|
||||
- tag.set_emulation_message:
|
||||
message: https://www.home-assistant.io/tag/pulse
|
||||
include_android_app_record: false
|
||||
- tag.emulation_off: nfcc_pn7150
|
||||
- tag.emulation_on: nfcc_pn7150
|
||||
- tag.polling_off: nfcc_pn7150
|
||||
- tag.polling_on: nfcc_pn7150
|
||||
substitutions:
|
||||
scl_pin: GPIO5
|
||||
sda_pin: GPIO4
|
||||
irq_pin: GPIO6
|
||||
ven_pin: GPIO7
|
||||
|
||||
i2c:
|
||||
- id: i2c_pn7150
|
||||
scl: 5
|
||||
sda: 4
|
||||
|
||||
pn7150_i2c:
|
||||
id: nfcc_pn7150
|
||||
irq_pin: 2
|
||||
ven_pin: 3
|
||||
emulation_message: https://www.home-assistant.io/tag/pulse_ce
|
||||
tag_ttl: 1000ms
|
||||
on_tag:
|
||||
- logger.log: "Tag"
|
||||
on_tag_removed:
|
||||
- logger.log: "Tag removed"
|
||||
on_emulated_tag_scan:
|
||||
- logger.log: "Tag emulated"
|
||||
<<: !include common.yaml
|
||||
|
Reference in New Issue
Block a user