Files
Franck Nijhof 19280e03ad [core] Defer requests import in external_files and web_server_ota
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.
2026-06-25 20:42:35 +00:00
..
2022-10-05 20:09:27 +13:00
2025-09-19 12:59:48 +00:00