ESPHome  1.15.3
Public Member Functions | Protected Attributes
esphome::binary_sensor::UniqueFilter Class Reference

#include <filter.h>

Inheritance diagram for esphome::binary_sensor::UniqueFilter:
esphome::binary_sensor::Filter

Public Member Functions

optional< bool > new_value (bool value, bool is_initial) override
 
- Public Member Functions inherited from esphome::binary_sensor::Filter
void input (bool value, bool is_initial)
 
void output (bool value, bool is_initial)
 

Protected Attributes

optional< bool > last_value_ {}
 
- Protected Attributes inherited from esphome::binary_sensor::Filter
friend BinarySensor
 
Filternext_ {nullptr}
 
BinarySensorparent_ {nullptr}
 
Deduplicator< bool > dedup_
 

Detailed Description

Definition at line 79 of file filter.h.

Member Function Documentation

◆ new_value()

optional< bool > esphome::binary_sensor::UniqueFilter::new_value ( bool  value,
bool  is_initial 
)
overridevirtual

Implements esphome::binary_sensor::Filter.

Definition at line 71 of file filter.cpp.

Field Documentation

◆ last_value_

optional<bool> esphome::binary_sensor::UniqueFilter::last_value_ {}
protected

Definition at line 84 of file filter.h.


The documentation for this class was generated from the following files: