mirror of
https://github.com/esphome/esphome.git
synced 2026-03-01 02:14:19 -07:00
Rename call_loop() to call_loop_() for naming convention
Non-virtual protected methods require trailing underscore per clang-tidy readability-identifier-naming.
This commit is contained in:
@@ -204,7 +204,7 @@ bool Component::cancel_retry(uint32_t id) {
|
||||
#pragma GCC diagnostic pop
|
||||
}
|
||||
|
||||
void Component::call_loop() { this->loop(); }
|
||||
void Component::call_loop_() { this->loop(); }
|
||||
void Component::call_setup() { this->setup(); }
|
||||
void Component::call_dump_config() {
|
||||
this->dump_config();
|
||||
@@ -255,11 +255,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->call_loop_();
|
||||
break;
|
||||
case COMPONENT_STATE_LOOP:
|
||||
// State loop: Call loop
|
||||
this->call_loop();
|
||||
this->call_loop_();
|
||||
break;
|
||||
case COMPONENT_STATE_FAILED:
|
||||
// State failed: Do nothing
|
||||
|
||||
@@ -286,7 +286,7 @@ class Component {
|
||||
protected:
|
||||
friend class Application;
|
||||
|
||||
void call_loop();
|
||||
void call_loop_();
|
||||
virtual void call_setup();
|
||||
virtual void call_dump_config();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user