ESPHome 2025.5.0
Loading...
Searching...
No Matches
esphome::binary_sensor::BinarySensorCondition< Ts > Class Template Reference

#include <automation.h>

Inheritance diagram for esphome::binary_sensor::BinarySensorCondition< Ts >:
esphome::Condition< Ts... >

Public Member Functions

 BinarySensorCondition (BinarySensor *parent, bool state)
 
bool check (Ts... x) override
 
- Public Member Functions inherited from esphome::Condition< Ts... >
bool check_tuple (const std::tuple< Ts... > &tuple)
 Call check with a tuple of values as parameter.
 

Protected Attributes

BinarySensorparent_
 
bool state_
 

Additional Inherited Members

- Protected Member Functions inherited from esphome::Condition< Ts... >
bool check_tuple_ (const std::tuple< Ts... > &tuple, seq< S... >)
 

Detailed Description

template<typename... Ts>
class esphome::binary_sensor::BinarySensorCondition< Ts >

Definition at line 133 of file automation.h.

Constructor & Destructor Documentation

◆ BinarySensorCondition()

template<typename... Ts>
esphome::binary_sensor::BinarySensorCondition< Ts >::BinarySensorCondition ( BinarySensor * parent,
bool state )
inline

Definition at line 135 of file automation.h.

Member Function Documentation

◆ check()

template<typename... Ts>
bool esphome::binary_sensor::BinarySensorCondition< Ts >::check ( Ts... x)
inlineoverridevirtual

Implements esphome::Condition< Ts... >.

Definition at line 136 of file automation.h.

Field Documentation

◆ parent_

template<typename... Ts>
BinarySensor* esphome::binary_sensor::BinarySensorCondition< Ts >::parent_
protected

Definition at line 139 of file automation.h.

◆ state_

template<typename... Ts>
bool esphome::binary_sensor::BinarySensorCondition< Ts >::state_
protected

Definition at line 140 of file automation.h.


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