A simple filter that replaces a substring with another substring.
More...
#include <filter.h>
A simple filter that replaces a substring with another substring.
Definition at line 102 of file filter.h.
◆ SubstituteFilter()
esphome::text_sensor::SubstituteFilter::SubstituteFilter |
( |
std::vector< std::string > |
from_strings, |
|
|
std::vector< std::string > |
to_strings |
|
) |
| |
|
inline |
◆ new_value()
optional< std::string > esphome::text_sensor::SubstituteFilter::new_value |
( |
std::string |
value | ) |
|
|
overridevirtual |
◆ from_strings_
std::vector<std::string> esphome::text_sensor::SubstituteFilter::from_strings_ |
|
protected |
◆ to_strings_
std::vector<std::string> esphome::text_sensor::SubstituteFilter::to_strings_ |
|
protected |
The documentation for this class was generated from the following files:
- /opt/build/esphome/esphome/components/text_sensor/filter.h
- /opt/build/esphome/esphome/components/text_sensor/filter.cpp