mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 08:55:36 +00:00
19280e03ad1bc6422fdf434b5b64601c40f48ee7
Same pattern as framework_helpers: both modules imported requests at module top level but only use it inside functions that perform actual network I/O (downloading fonts/images, web_server OTA upload), never during config validation. external_files is loaded by the font and audio_file components. Defer the imports into the functions that use them, and update the tests to patch requests.<method> directly (the modules no longer hold a requests attribute). Adds regression tests guarding against re-introducing the top-level imports.
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
545 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
