9 if (!this->
parent_->read_encoder())
13 if (this->raw_count_sensor_ !=
nullptr)
14 this->raw_count_sensor_->publish_state(this->
parent_->get_count());
17void MT6701Sensor::dump_config() {
18 LOG_SENSOR(
"",
"MT6701 Sensor",
this);
19 LOG_UPDATE_INTERVAL(
this);
20 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")