1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

Tuya Sensor remove commented out code (style guide) (#1132)

This commit is contained in:
Otto Winter
2020-07-14 19:00:01 +02:00
committed by GitHub
parent e20c994b82
commit 17b55fc23d

View File

@@ -24,17 +24,6 @@ void TuyaSensor::setup() {
});
}
// void TuyaSensor::write_state(bool state) {
// TuyaDatapoint datapoint{};
// datapoint.id = this->sensor_id_;
// datapoint.type = TuyaDatapointType::BOOLEAN;
// datapoint.value_bool = state;
// this->parent_->set_datapoint_value(datapoint);
// ESP_LOGD(TAG, "Setting sensor: %s", ONOFF(state));
// this->publish_state(state);
// }
void TuyaSensor::dump_config() {
LOG_SENSOR("", "Tuya Sensor", this);
ESP_LOGCONFIG(TAG, " Sensor has datapoint ID %u", this->sensor_id_);