ESPHome  2024.11.3
Public Member Functions | Protected Attributes
esphome::sensor::RoundMultipleFilter Class Reference

#include <filter.h>

Inheritance diagram for esphome::sensor::RoundMultipleFilter:
esphome::sensor::Filter

Public Member Functions

 RoundMultipleFilter (float multiple)
 
optional< float > new_value (float value) override
 
- Public Member Functions inherited from esphome::sensor::Filter
virtual void initialize (Sensor *parent, Filter *next)
 Initialize this filter, please note this can be called more than once. More...
 
void input (float value)
 
void output (float value)
 

Protected Attributes

float multiple_
 
- Protected Attributes inherited from esphome::sensor::Filter
friend Sensor
 
Filternext_ {nullptr}
 
Sensorparent_ {nullptr}
 

Detailed Description

Definition at line 433 of file filter.h.

Constructor & Destructor Documentation

◆ RoundMultipleFilter()

esphome::sensor::RoundMultipleFilter::RoundMultipleFilter ( float  multiple)
explicit

Definition at line 476 of file filter.cpp.

Member Function Documentation

◆ new_value()

optional< float > esphome::sensor::RoundMultipleFilter::new_value ( float  value)
overridevirtual

Implements esphome::sensor::Filter.

Definition at line 477 of file filter.cpp.

Field Documentation

◆ multiple_

float esphome::sensor::RoundMultipleFilter::multiple_
protected

Definition at line 439 of file filter.h.


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