mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 11:47:30 +01:00
Tuya Sensor remove commented out code (style guide) (#1132)
This commit is contained in:
parent
e20c994b82
commit
17b55fc23d
@ -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_);
|
||||
|
Loading…
Reference in New Issue
Block a user