16 ESP_LOGD(TAG,
"'%s': Got Voltage=%fV", LOG_STR_ARG(this->
get_log_name()), v);
22 LOG_SENSOR(
" ",
"ADS1115 Sensor",
this);
const LogString * get_log_name() const
Get the name for a "%s" log argument (LOG_STR_ARG).
ADS1115Component * parent_
void dump_config() override
ADS1115Resolution resolution_
ADS1115Samplerate samplerate_
ADS1115Multiplexer multiplexer_
void publish_state(float state)
Publish a new state to the front-end.
ESPHOME_LOG_TAG(TAG, "ads1115")