1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-27 15:42:22 +01:00

Enable api transport encryption for new projects (#3142)

* Enable api transport encryption for new projects

* Format
This commit is contained in:
Otto Winter
2022-05-11 01:38:05 +02:00
committed by GitHub
parent c569f5ddcf
commit 0b69f72315
2 changed files with 5 additions and 0 deletions

View File

@@ -111,6 +111,8 @@ def wizard_file(**kwargs):
# Configure API
if "password" in kwargs:
config += f" password: \"{kwargs['password']}\"\n"
if "api_encryption_key" in kwargs:
config += f" encryption:\n key: \"{kwargs['api_encryption_key']}\"\n"
# Configure OTA
config += "\nota:\n"