From 0494fd2ba15a6b19486846bd60a7fc1aa943a1e1 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Tue, 29 Jul 2025 14:29:04 +1200 Subject: [PATCH] Update esphome/components/esp32/post_build.py.script Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- esphome/components/esp32/post_build.py.script | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/esp32/post_build.py.script b/esphome/components/esp32/post_build.py.script index 98320ee2d3..c3289e9d51 100644 --- a/esphome/components/esp32/post_build.py.script +++ b/esphome/components/esp32/post_build.py.script @@ -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,