9 if (!this->
parent_->read_encoder())
13 PUBLISH_STATE(this->raw_count_sensor_, this->
parent_->get_count());
16void MT6701Sensor::dump_config() {
17 LOG_SENSOR(
"",
"MT6701 Sensor",
this);
18 LOG_UPDATE_INTERVAL(
this);
19 LOG_SENSOR(
" ",
"Raw Count", this->raw_count_sensor_);
MT6701Component * parent_
void publish_state(float state)
Publish a new state to the front-end.
ESPHOME_LOG_TAG(TAG, "mt6701.sensor")