1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-11 15:52:20 +01:00

Introduce call_dump_config() indirection (#2325)

This commit is contained in:
Oxan van Leeuwen
2021-09-20 11:16:31 +02:00
committed by GitHub
parent 2d7f8b3bdf
commit 1e8e471dec
5 changed files with 15 additions and 2 deletions

View File

@@ -64,8 +64,9 @@ bool Component::cancel_timeout(const std::string &name) { // NOLINT
}
void Component::call_loop() { this->loop(); }
void Component::call_setup() { this->setup(); }
void Component::call_dump_config() { this->dump_config(); }
uint32_t Component::get_component_state() const { return this->component_state_; }
void Component::call() {
uint32_t state = this->component_state_ & COMPONENT_STATE_MASK;