From a50d70c8d3ea39b27681bfe6e8f5a62519dfe760 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Wed, 18 Mar 2026 14:08:03 -1000 Subject: [PATCH] [core] Remove call_loop_ wrapper and call loop() directly (#14931) --- esphome/core/component.cpp | 5 ++--- esphome/core/component.h | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/esphome/core/component.cpp b/esphome/core/component.cpp index a9e93f9131..00dda0cc26 100644 --- a/esphome/core/component.cpp +++ b/esphome/core/component.cpp @@ -209,7 +209,6 @@ bool Component::cancel_retry(uint32_t id) { #pragma GCC diagnostic pop } -void Component::call_loop_() { this->loop(); } void Component::call_setup() { this->setup(); } void Component::call_dump_config_() { this->dump_config(); @@ -259,11 +258,11 @@ void Component::call() { case COMPONENT_STATE_SETUP: // State setup: Call first loop and set state to loop this->set_component_state_(COMPONENT_STATE_LOOP); - this->call_loop_(); + this->loop(); break; case COMPONENT_STATE_LOOP: // State loop: Call loop - this->call_loop_(); + this->loop(); break; case COMPONENT_STATE_FAILED: // State failed: Do nothing diff --git a/esphome/core/component.h b/esphome/core/component.h index 02598b53ff..119681f64c 100644 --- a/esphome/core/component.h +++ b/esphome/core/component.h @@ -301,7 +301,6 @@ class Component { protected: friend class Application; - void call_loop_(); virtual void call_setup(); void call_dump_config_();