Skip to content

Commit b3b4547

Browse files
committed
replace secrets with substitutions
1 parent 0920661 commit b3b4547

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

main.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,20 @@ logger:
1313
# Enable Home Assistant API
1414
api:
1515
encryption:
16-
key: !secret encryption_key
16+
key: ${encryption_key}
1717

1818
ota:
1919
- platform: esphome
20-
password: !secret ota_password
20+
password: ${ota_password}
2121

2222
wifi:
23-
ssid: !secret wifi_ssid
24-
password: !secret wifi_password
23+
ssid: ${wifi_ssid}
24+
password: ${wifi_password}
2525

2626
# Enable fallback hotspot (captive portal) in case wifi connection fails
2727
ap:
2828
ssid: "Floorheatingactuatorcontroller"
29-
password: !secret wifi_ap_password
29+
password: ${wifi_ap_password}
3030

3131
text_sensor:
3232
- platform: wifi_info

secrets.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ wifi_ssid: "Some-SSID"
33
wifi_password: "supersecretpassword"
44
# Encryption key is generated by ESPHome for secure communication with Home Assistant,
55
# this needs to be overridden in each instance of the device/package
6-
encryption_key: "DEADbeefDEADbeefDEADbeefDEADbeefDEADbeefDEAD"
6+
encryption_key: "ZGVhZGJlZWY=ZGVhZGJlZWY="
77
# OTA password for over-the-air updates
88
ota_password: "deadbeefdeadbeefdeadbeefdeadbeef"
99
# Wi-Fi Access Point password for fallback hotspot
1010
wifi_ap_password: "deadbeefdead"
11+
12+

0 commit comments

Comments
 (0)