15 void setup()
override;
16 void update()
override;
17 void dump_config()
override;
19 void set_heater_state(
bool desired);
20 bool is_heater_enabled();
virtual void setup()
Where the component's initialization should happen.
This class simplifies creating components that periodically check a state.
uint32_t read_serial_num_()
Reads the serial number from the device and checks the CRC.
bool reset_()
Sends a 'reset' request to the HTU31D, followed by a 15ms delay.
This Class provides the methods to read/write bytes from/to an i2c device.