mirror of
https://github.com/esphome/esphome.git
synced 2026-09-24 21:44:04 +00:00
8a2514a9c94e5c717e3c07d72b27b7f04b67648c
Call global_logger->log_vprintf_() directly without null-checking global_logger on every log call. Logger::pre_setup() sets global_logger before any other component is created in the generated setup() function, so it is guaranteed to be valid by the time any log function is invoked. Also removes the __FlashStringHelper* esp_log_vprintf_ overload which was dead code (only called from esp_log_printf_, never directly). Add a Python codegen test to verify the ordering invariant, and a comment on App.pre_setup() documenting the constraint.
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
730 MiB
Languages
C++
55.6%
Python
43.8%
C
0.3%
JavaScript
0.2%
