Update esphome/components/esp32/post_build.py.script

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jesse Hills 2025-07-29 14:29:04 +12:00 committed by GitHub
parent fe61e4eacd
commit 0494fd2ba1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,8 +79,9 @@ def merge_factory_bin(source, target, env):
return
output_path = firmware_path.with_suffix(".factory.bin")
python_exe = f'"{env.subst("$PYTHONEXE")}"'
cmd = [
f'"{env.subst("$PYTHONEXE")}"', "-m", "esptool",
python_exe, "-m", "esptool",
"--chip", chip,
"merge_bin",
"--flash_size", flash_size,