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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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_);