mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 08:28:12 +01:00
Tuya Sensor remove commented out code (style guide) (#1132)
This commit is contained in:
parent
e20c994b82
commit
17b55fc23d
1 changed files with 0 additions and 11 deletions
|
@ -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() {
|
void TuyaSensor::dump_config() {
|
||||||
LOG_SENSOR("", "Tuya Sensor", this);
|
LOG_SENSOR("", "Tuya Sensor", this);
|
||||||
ESP_LOGCONFIG(TAG, " Sensor has datapoint ID %u", this->sensor_id_);
|
ESP_LOGCONFIG(TAG, " Sensor has datapoint ID %u", this->sensor_id_);
|
||||||
|
|
Loading…
Reference in a new issue