mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 16:48:40 +00:00
52f47d0b91be2f8ea8fdfcfa9e0f6bbd933f6b68
Address copilot review: wrap_to_code is called once per component, so the lazy `from esphome import yaml_util` inside it was doing a (cached) sys.modules lookup per component. Move the import up to generate_cpp_contents, pass the module down, rename the helper to _wrap_to_code to mark it private.
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
603 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
