diff --git a/esphome/core/automation.h b/esphome/core/automation.h index 4bc4bdf71e..7934fdbec9 100644 --- a/esphome/core/automation.h +++ b/esphome/core/automation.h @@ -322,7 +322,7 @@ template class Automation; template class Trigger { public: /// Inform the parent automation that the event has triggered. - __attribute__((always_inline)) void trigger(const Ts &...x) { + void trigger(const Ts &...x) { if (this->automation_parent_ == nullptr) return; this->automation_parent_->trigger(x...); @@ -429,7 +429,7 @@ template class ActionList { this->add_action(action); } } - __attribute__((always_inline)) void play(const Ts &...x) { + void play(const Ts &...x) { if (this->actions_begin_ != nullptr) this->actions_begin_->play_complex(x...); } @@ -473,7 +473,7 @@ template class Automation { void stop() { this->actions_.stop(); } - __attribute__((always_inline)) void trigger(const Ts &...x) { this->actions_.play(x...); } + void trigger(const Ts &...x) { this->actions_.play(x...); } bool is_running() { return this->actions_.is_running(); }