1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-08 20:00:27 +01:00

Update wizard.py

This commit is contained in:
Keith Burzinski 2024-04-15 21:09:57 -05:00
parent 91198556f6
commit a067693774
No known key found for this signature in database
GPG Key ID: 802564C5F0EEFFBE

View File

@ -153,10 +153,11 @@ def wizard_file(**kwargs):
# Configure OTA # Configure OTA
config += "\nota:\n" config += "\nota:\n"
config += " - platform: esphome\n"
if "ota_password" in kwargs: if "ota_password" in kwargs:
config += f" password: \"{kwargs['ota_password']}\"" config += f" password: \"{kwargs['ota_password']}\""
elif "password" in kwargs: elif "password" in kwargs:
config += f" password: \"{kwargs['password']}\"" config += f" password: \"{kwargs['password']}\""
# Configuring wifi # Configuring wifi
config += "\n\nwifi:\n" config += "\n\nwifi:\n"