mirror of
https://github.com/esphome/esphome.git
synced 2026-09-21 12:08:38 +00:00
ee1fffb06234441bd7987d0538a5f676e7b9d01b
framework_helpers imported requests at module top level, but it is only used by download_from_mirrors() to fetch toolchains during a build. The module is loaded during config validation (via the esp-idf framework, the default for esp32, and the host platform), so every such config paid the ~85ms requests import cost even though validation never downloads anything. Defer the import into download_from_mirrors(). Measured roughly 70ms (~16%) off esphome config wall time for an esp-idf/host config.
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
609 MiB
Languages
C++
55.7%
Python
43.7%
C
0.3%
JavaScript
0.2%
