1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 22:53:59 +00:00

Add additional coverage for yaml_util (#10674)

This commit is contained in:
J. Nick Koston
2025-09-11 00:01:11 -05:00
committed by GitHub
parent fe1371f4dc
commit c45efe8f40
8 changed files with 255 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
# This file should be ignored
platform: template
name: "Hidden Sensor"

View File

@@ -0,0 +1 @@
This is not a YAML file and should be ignored

View File

@@ -0,0 +1,4 @@
platform: template
name: "Sensor 1"
lambda: |-
return 42.0;

View File

@@ -0,0 +1,4 @@
platform: template
name: "Sensor 2"
lambda: |-
return 100.0;

View File

@@ -0,0 +1,4 @@
platform: template
name: "Sensor 3 in subdir"
lambda: |-
return 200.0;

View File

@@ -0,0 +1,4 @@
test_secret: "my_secret_value"
another_secret: "another_value"
wifi_password: "super_secret_wifi"
api_key: "0123456789abcdef"

View File

@@ -0,0 +1,17 @@
esphome:
name: test_device
platform: ESP32
board: esp32dev
wifi:
ssid: "TestNetwork"
password: !secret wifi_password
api:
encryption:
key: !secret api_key
sensor:
- platform: template
name: "Test Sensor"
id: !secret test_secret