A filter that maps values from one set to another.
More...
#include <filter.h>
|
| | MapFilter (std::map< std::string, std::string > mappings) |
| |
| optional< std::string > | new_value (std::string value) override |
| |
| 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) |
| |
A filter that maps values from one set to another.
Definition at line 114 of file filter.h.
◆ MapFilter()
| esphome::text_sensor::MapFilter::MapFilter |
( |
std::map< std::string, std::string > | mappings | ) |
|
|
inline |
◆ new_value()
| optional< std::string > esphome::text_sensor::MapFilter::new_value |
( |
std::string | value | ) |
|
|
overridevirtual |
◆ mappings_
| std::map<std::string, std::string> esphome::text_sensor::MapFilter::mappings_ |
|
protected |
The documentation for this class was generated from the following files: