mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 17:27:45 +01:00
Adopt using wifi secrets that should exist at this point (#2874)
This commit is contained in:
parent
c128880033
commit
24874f4c3c
1 changed files with 5 additions and 6 deletions
|
@ -29,12 +29,11 @@ CONFIG_SCHEMA = cv.Schema(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
WIFI_MESSAGE = """
|
WIFI_CONFIG = """
|
||||||
|
|
||||||
# Do not forget to add your own wifi configuration before installing this configuration
|
wifi:
|
||||||
# wifi:
|
ssid: !secret wifi_ssid
|
||||||
# ssid: !secret wifi_ssid
|
password: !secret wifi_password
|
||||||
# password: !secret wifi_password
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
@ -55,6 +54,6 @@ def import_config(path: str, name: str, project_name: str, import_url: str) -> N
|
||||||
"esphome": {"name_add_mac_suffix": False},
|
"esphome": {"name_add_mac_suffix": False},
|
||||||
}
|
}
|
||||||
p.write_text(
|
p.write_text(
|
||||||
dump(config) + WIFI_MESSAGE,
|
dump(config) + WIFI_CONFIG,
|
||||||
encoding="utf8",
|
encoding="utf8",
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue