ESPHome  2024.11.3
Public Member Functions | Protected Attributes
esphome::text_sensor::TextSensorStateCondition< Ts > Class Template Reference

#include <automation.h>

Inheritance diagram for esphome::text_sensor::TextSensorStateCondition< Ts >:
esphome::Condition< Ts... >

Public Member Functions

 TextSensorStateCondition (TextSensor *parent)
 
 TEMPLATABLE_VALUE (std::string, state) bool check(Ts... x) override
 
- Public Member Functions inherited from esphome::Condition< Ts... >
virtual bool check (Ts... x)=0
 Check whether this condition passes. This condition check must be instant, and not cause any delays. More...
 
bool check_tuple (const std::tuple< Ts... > &tuple)
 Call check with a tuple of values as parameter. More...
 

Protected Attributes

TextSensorparent_
 

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::text_sensor::TextSensorStateCondition< Ts >

Definition at line 26 of file automation.h.

Constructor & Destructor Documentation

◆ TextSensorStateCondition()

template<typename... Ts>
esphome::text_sensor::TextSensorStateCondition< Ts >::TextSensorStateCondition ( TextSensor parent)
inlineexplicit

Definition at line 28 of file automation.h.

Member Function Documentation

◆ TEMPLATABLE_VALUE()

template<typename... Ts>
esphome::text_sensor::TextSensorStateCondition< Ts >::TEMPLATABLE_VALUE ( std::string  ,
state   
)
inlineoverride

Definition at line 30 of file automation.h.

Field Documentation

◆ parent_

template<typename... Ts>
TextSensor* esphome::text_sensor::TextSensorStateCondition< Ts >::parent_
protected

Definition at line 35 of file automation.h.


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