mirror of
https://github.com/esphome/esphome.git
synced 2026-09-14 00:28:39 +00:00
a3a531f672834b885811700c2c3bcde2822e2c81
The scheduler also constructs WarnIfComponentBlockingGuard around scheduled item execution (scheduler.cpp:740), so set_interval / set_timeout / defer callbacks record into the affected component's runtime_stats_. Since scheduler.call() runs inside before_loop_tasks_, that time was double-counted: once in component period/total, once in the "before" overhead bucket. Observed in the field as before > overhead_total with inter_component clamped to 0. Fix: add a global cumulative counter on ComponentRuntimeStats that record_time() bumps on every guard finish, snapshot it around before_loop_tasks_, and subtract the delta from the before bucket before passing it to record_loop_active.
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
594 MiB
Languages
C++
55.8%
Python
43.6%
C
0.3%
JavaScript
0.2%
