mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 11:07:33 +00:00
core-prebuilt-dir-upload
Two small simplifications surfaced by re-reading the diff with a 'is this DRY?' lens: - Extract _missing_prebuilt_flash_tool(): the _ensure_platform_packages_for_prebuilt_upload helper had two near-identical 'if platform check; if finder() is not None return 0; tool_label = ...' blocks. Lift the platform->(tool_name) selection into a tiny helper so the early-return is one line and the install body is no longer interleaved with the platform dispatch. - Collapse the two near-duplicate 'firmware not found' return points in upload_using_picotool. Both branches just selected an error message and returned 1; reorder so the message selection happens first and there's a single 'return 1'. No behavior change; pure refactor. 587 unit tests pass. Issue: esphome/device-builder#572
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
393 MiB
Languages
C++
60.7%
Python
38.9%
C
0.3%
