1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 20:02:22 +01:00

Fix regressed 'esphome run' (#4094)

This commit is contained in:
Maurice Makaay
2022-11-26 20:17:07 +01:00
committed by GitHub
parent b089a4ea80
commit c5f59fad62

View File

@@ -298,7 +298,7 @@ def upload_program(config, args, host):
ota_conf = config[CONF_OTA]
remote_port = ota_conf[CONF_PORT]
password = ota_conf.get(CONF_PASSWORD, "")
if args.file is not None:
if getattr(args, "file", None) is not None:
return espota2.run_ota(host, remote_port, password, args.file)
return espota2.run_ota(host, remote_port, password, CORE.firmware_bin)