ESPHome 2026.4.0-dev
Loading...
Searching...
No Matches
esphome::TriggerOnTrueForwarder Struct Reference

Callback forwarder that triggers an Automation<> only when the bool arg is true. More...

#include <automation.h>

Public Member Functions

void operator() (bool state) const
 

Data Fields

Automationautomation
 

Detailed Description

Callback forwarder that triggers an Automation<> only when the bool arg is true.

Must stay pointer-sized to fit inline in Callback::ctx_ without heap allocation.

Definition at line 508 of file automation.h.

Member Function Documentation

◆ operator()()

void esphome::TriggerOnTrueForwarder::operator() ( bool state) const
inline

Definition at line 510 of file automation.h.

Field Documentation

◆ automation

Automation* esphome::TriggerOnTrueForwarder::automation

Definition at line 509 of file automation.h.


The documentation for this struct was generated from the following file: