ESPHome 2026.4.0-dev
Loading...
Searching...
No Matches
esphome::lock::LockStateForwarder< State > Struct Template Reference

Callback forwarder that triggers an Automation<> only when a specific lock state is entered. More...

#include <automation.h>

Public Member Functions

void operator() (LockState state) const
 

Data Fields

Automationautomation
 

Detailed Description

template<LockState State>
struct esphome::lock::LockStateForwarder< State >

Callback forwarder that triggers an Automation<> only when a specific lock state is entered.

Pointer-sized (single Automation* field) to fit inline in Callback::ctx_.

Definition at line 54 of file automation.h.

Member Function Documentation

◆ operator()()

template<LockState State>
void esphome::lock::LockStateForwarder< State >::operator() ( LockState state) const
inline

Definition at line 56 of file automation.h.

Field Documentation

◆ automation

template<LockState State>
Automation* esphome::lock::LockStateForwarder< State >::automation

Definition at line 55 of file automation.h.


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