[ota.esphome] Handle blank password the same as no password defined (#11271)

This commit is contained in:
Jesse Hills committed 2025-10-16 17:17:06 +13:00
1 parent f71aed3a5c
commit 2b94de8732
5 files changed
+22 -18

No files matched your search

+1 -1
View File
@@ -606,7 +606,7 @@ def upload_program(
from esphome import espota2
remote_port = int(ota_conf[CONF_PORT])
password = ota_conf.get(CONF_PASSWORD, "")
password = ota_conf.get(CONF_PASSWORD)
if getattr(args, "file", None) is not None:
binary = Path(args.file)
else: