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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user