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

#include <filter.h>

Inheritance diagram for esphome::binary_sensor::UniqueFilter:

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 106 of file filter.h.

Member Function Documentation

◆ new_value()

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

Implements esphome::binary_sensor::Filter.

Definition at line 117 of file filter.cpp.

Field Documentation

◆ last_value_

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

Definition at line 111 of file filter.h.

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