|
ESPHome 2026.5.0-dev
|
Sensor with deduplication — sensor may be null, null check is internal. More...
#include <ld24xx.h>
Public Member Functions | |
| void | set_sensor (sensor::Sensor *sens) |
| void | publish_state_if_not_dup (T state) |
| void | publish_state_unknown () |
| bool | has_sensor () const |
| sensor::Sensor * | get_sensor () const |
Protected Attributes | |
| sensor::Sensor * | sens_ {nullptr} |
| Deduplicator< T > | dedup_ |
Sensor with deduplication — sensor may be null, null check is internal.
Stored inline, no heap allocation. Does nothing when no sensor is set.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |