From 758189fe56649797df9c8aa07567b6d40b85e88c Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 10 May 2026 23:40:56 -0500 Subject: [PATCH] [deps] Bundle ltchiptool for libretiny prebuilt-dir uploads `esphome upload --prebuilt-dir` on a libretiny device routes through ltchiptool to bypass the PlatformIO build-tree requirement. On hosts that have never compiled a libretiny config locally (the dashboard's transparent-install use case) the libretiny PlatformIO platform's penv at ~/.platformio/penv/.libretiny/bin/ltchiptool doesn't exist yet, leaving the upload to fail with an actionable but unwelcome "install ltchiptool" hint. Bundle ltchiptool as a direct dependency, mirroring esptool which is already shipped even though only ESP users need it. `pip install esphome` is now sufficient for libretiny serial uploads from a prebuilt artifact set; get_ltchiptool_path's PATH lookup picks up the pip-installed binary first, with the PIO penv fallback still in place for environments that vendor esphome without the extra. Issue: esphome/device-builder#572 Issue: esphome/device-builder#570 --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 818453dc8f..28b298b79f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,6 +10,7 @@ tzdata>=2026.2 # from time pyserial==3.5 platformio==6.1.19 esptool==5.2.0 +ltchiptool==4.14.1 click==8.3.3 esphome-dashboard==20260425.0 aioesphomeapi==44.23.0