ESPHome
2024.11.0
|
Helper class to deduplicate items in a series of values. More...
#include <helpers.h>
Public Member Functions | |
bool | next (T value) |
Feeds the next item in the series to the deduplicator and returns whether this is a duplicate. More... | |
bool | has_value () const |
Returns whether this deduplicator has processed any items so far. More... | |
Protected Attributes | |
bool | has_value_ {false} |
T | last_value_ {} |
Helper class to deduplicate items in a series of values.
|
inline |
|
inline |
|
protected |
|
protected |