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 11:38:05 +12:00
committed by GitHub
parent c569f5ddcf
commit 0b69f72315
2 changed files with 5 additions and 0 deletions
+2
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"