|
ESPHome 2026.1.4
|
A simple filter that replaces a substring with another substring. More...
#include <filter.h>
Public Member Functions | |
| SubstituteFilter (const std::initializer_list< Substitution > &substitutions) | |
| 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. | |
| void | input (const std::string &value) |
| void | output (const std::string &value) |
Protected Attributes | |
| FixedVector< Substitution > | substitutions_ |
Protected Attributes inherited from esphome::text_sensor::Filter | |
| friend | TextSensor |
| Filter * | next_ {nullptr} |
| TextSensor * | parent_ {nullptr} |
A simple filter that replaces a substring with another substring.
|
explicit |
Definition at line 71 of file filter.cpp.
|
overridevirtual |
Implements esphome::text_sensor::Filter.
Definition at line 74 of file filter.cpp.
|
protected |