1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Add some components to the new testing framework (A part 1) (#6142)

This commit is contained in:
Keith Burzinski
2024-02-04 20:29:18 -06:00
committed by GitHub
parent b28821d846
commit 5e9741f51c
70 changed files with 1355 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
sensor:
- platform: absolute_humidity
name: Absolute Humidity
temperature: template_temperature
humidity: template_humidity
- platform: template
id: template_humidity
lambda: |-
if (millis() > 10000) {
return 0.6;
} else {
return 0.0;
}
- platform: template
id: template_temperature
lambda: |-
if (millis() > 10000) {
return 42.0;
} else {
return 0.0;
}