This class simplifies creating components that periodically check a state.
void set_temperature(sensor::Sensor *temperature)
void dump_config() override
void update() override
Update the sensor values (temperature+humidity).
sensor::Sensor * temperature_
sensor::Sensor * humidity_
float get_setup_priority() const override
void set_humidity(sensor::Sensor *humidity)
This Class provides the methods to read/write bytes from/to an i2c device.
Base-class for all sensors.
Providing packet encoding functions for exchanging data with a remote host.