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:16:42 -06:00
parent d06bab01ac
commit a3c8f667a7
7 changed files with 38 additions and 20 deletions

View File

@@ -396,8 +396,10 @@ uint32_t WarnIfComponentBlockingGuard::finish() {
uint32_t blocking_time = curr_time - this->started_;
#ifdef USE_RUNTIME_STATS
// Record component runtime stats
runtime_stats.record_component_time(this->component_, blocking_time, curr_time);
#endif
bool should_warn;
if (this->component_ != nullptr) {
should_warn = this->component_->should_warn_of_blocking(blocking_time);