|
ESPHome 2025.12.0-dev
|
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 false if this is a duplicate. | |
| bool | next_unknown () |
| Returns true if the deduplicator's value was previously known. | |
| bool | has_value () const |
| Returns true if this deduplicator has processed any items. | |
Protected Attributes | |
| bool | has_value_ {false} |
| bool | value_unknown_ {false} |
| T | last_value_ {} |
Helper class to deduplicate items in a series of values.
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |