From 17b55fc23de187fd3eb5b717a65f60bf04fe44ee Mon Sep 17 00:00:00 2001 From: Otto Winter Date: Tue, 14 Jul 2020 19:00:01 +0200 Subject: [PATCH] Tuya Sensor remove commented out code (style guide) (#1132) --- esphome/components/tuya/sensor/tuya_sensor.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/esphome/components/tuya/sensor/tuya_sensor.cpp b/esphome/components/tuya/sensor/tuya_sensor.cpp index 49a1af2efe..b8e2aa97b7 100644 --- a/esphome/components/tuya/sensor/tuya_sensor.cpp +++ b/esphome/components/tuya/sensor/tuya_sensor.cpp @@ -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_);