ESPHome  2024.9.2
Public Member Functions
esphome::text_sensor::ToUpperFilter Class Reference

A simple filter that converts all text to uppercase. More...

#include <filter.h>

Inheritance diagram for esphome::text_sensor::ToUpperFilter:
esphome::text_sensor::Filter

Public Member Functions

optional< std::string > new_value (std::string value) override
 
- Public Member Functions inherited from esphome::text_sensor::Filter
virtual void initialize (TextSensor *parent, Filter *next)
 Initialize this filter, please note this can be called more than once. More...
 
void input (const std::string &value)
 
void output (const std::string &value)
 

Additional Inherited Members

- Protected Attributes inherited from esphome::text_sensor::Filter
friend TextSensor
 
Filternext_ {nullptr}
 
TextSensorparent_ {nullptr}
 

Detailed Description

A simple filter that converts all text to uppercase.

Definition at line 70 of file filter.h.

Member Function Documentation

◆ new_value()

optional< std::string > esphome::text_sensor::ToUpperFilter::new_value ( std::string  value)
overridevirtual

Implements esphome::text_sensor::Filter.

Definition at line 45 of file filter.cpp.


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