1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-11 15:52:20 +01:00
This commit is contained in:
J. Nick Koston
2025-07-08 09:25:00 -06:00
parent a3c8f667a7
commit f2ac6b0af6
6 changed files with 39 additions and 22 deletions

View File

@@ -398,7 +398,9 @@ uint32_t WarnIfComponentBlockingGuard::finish() {
#ifdef USE_RUNTIME_STATS
// Record component runtime stats
runtime_stats.record_component_time(this->component_, blocking_time, curr_time);
if (global_runtime_stats != nullptr) {
global_runtime_stats->record_component_time(this->component_, blocking_time, curr_time);
}
#endif
bool should_warn;
if (this->component_ != nullptr) {