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

[core] Update to esptool 5.0+ command syntax (#10011)

This commit is contained in:
J. Nick Koston
2025-08-03 16:14:17 -10:00
committed by GitHub
parent 494a1a216c
commit 9aad0733ef
3 changed files with 9 additions and 8 deletions

View File

@@ -277,20 +277,20 @@ def upload_using_esptool(config, port, file, speed):
def run_esptool(baud_rate):
cmd = [
"esptool.py",
"esptool",
"--before",
"default_reset",
"default-reset",
"--after",
"hard_reset",
"hard-reset",
"--baud",
str(baud_rate),
"--port",
port,
"--chip",
mcu,
"write_flash",
"write-flash",
"-z",
"--flash_size",
"--flash-size",
"detect",
]
for img in flash_images: