void add_on_state_callback(std::function< void(float)> &&callback)
Add a callback that will be called every time a filtered value arrives.
const float DATA
For components that import data from directly connected sensors like DHT.
void set_configuration(ResistanceConfiguration configuration)
float get_setup_priority() const override
void set_sensor(Sensor *sensor)
float state
This member variable stores the last state that has passed through all filters.
ResistanceConfiguration configuration_
Abstract interface to mark components that provide resistance values.
void dump_config() override
Implementation of SPI Controller mode.
bool has_state() const
Return whether this sensor has gotten a full state (that passed through all filters) yet...
void set_reference_voltage(float reference_voltage)
Base-class for all sensors.
void process_(float value)
esphome::sensor::Sensor * sensor
void set_resistor(float resistor)