mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 03:12:20 +01:00
Consolidate test files where all tests are identical (#6690)
This commit is contained in:
15
tests/components/sntp/common.yaml
Normal file
15
tests/components/sntp/common.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
@@ -1,15 +1 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,15 +1 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,15 +1 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,15 +1 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,15 +1 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
||||
<<: !include common.yaml
|
||||
|
@@ -1,15 +1 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
time:
|
||||
- platform: sntp
|
||||
id: sntp_time
|
||||
servers:
|
||||
- 0.pool.ntp.org
|
||||
- 1.pool.ntp.org
|
||||
- 192.168.178.1
|
||||
on_time:
|
||||
cron: "/30 0-30,30/5 * ? JAN-DEC MON,SAT-SUN,TUE-FRI"
|
||||
then:
|
||||
- lambda: 'ESP_LOGD("main", "time");'
|
||||
<<: !include common.yaml
|
||||
|
Reference in New Issue
Block a user