mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
Add some components to the new testing framework (P) (#6213)
This commit is contained in:
21
tests/components/prometheus/test.esp32-c3-idf.yaml
Normal file
21
tests/components/prometheus/test.esp32-c3-idf.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: template_sensor1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
update_interval: 60s
|
||||
|
||||
prometheus:
|
||||
include_internal: true
|
||||
relabel:
|
||||
template_sensor1:
|
||||
id: hellow_world
|
||||
name: Hello World
|
21
tests/components/prometheus/test.esp32-c3.yaml
Normal file
21
tests/components/prometheus/test.esp32-c3.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: template_sensor1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
update_interval: 60s
|
||||
|
||||
prometheus:
|
||||
include_internal: true
|
||||
relabel:
|
||||
template_sensor1:
|
||||
id: hellow_world
|
||||
name: Hello World
|
21
tests/components/prometheus/test.esp32-idf.yaml
Normal file
21
tests/components/prometheus/test.esp32-idf.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: template_sensor1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
update_interval: 60s
|
||||
|
||||
prometheus:
|
||||
include_internal: true
|
||||
relabel:
|
||||
template_sensor1:
|
||||
id: hellow_world
|
||||
name: Hello World
|
21
tests/components/prometheus/test.esp32.yaml
Normal file
21
tests/components/prometheus/test.esp32.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: template_sensor1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
update_interval: 60s
|
||||
|
||||
prometheus:
|
||||
include_internal: true
|
||||
relabel:
|
||||
template_sensor1:
|
||||
id: hellow_world
|
||||
name: Hello World
|
21
tests/components/prometheus/test.esp8266.yaml
Normal file
21
tests/components/prometheus/test.esp8266.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
wifi:
|
||||
ssid: MySSID
|
||||
password: password1
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
id: template_sensor1
|
||||
lambda: |-
|
||||
if (millis() > 10000) {
|
||||
return 42.0;
|
||||
} else {
|
||||
return 0.0;
|
||||
}
|
||||
update_interval: 60s
|
||||
|
||||
prometheus:
|
||||
include_internal: true
|
||||
relabel:
|
||||
template_sensor1:
|
||||
id: hellow_world
|
||||
name: Hello World
|
Reference in New Issue
Block a user