[tuya] Combine log statements to reduce loop blocking (#12924)

This commit is contained in:
J. Nick Koston
2026-01-04 12:53:58 -10:00
committed by GitHub
parent 25ef9aff04
commit 022c42f9ca
2 changed files with 8 additions and 4 deletions
@@ -14,8 +14,10 @@ void TuyaBinarySensor::setup() {
}
void TuyaBinarySensor::dump_config() {
ESP_LOGCONFIG(TAG, "Tuya Binary Sensor:");
ESP_LOGCONFIG(TAG, " Binary Sensor has datapoint ID %u", this->sensor_id_);
ESP_LOGCONFIG(TAG,
"Tuya Binary Sensor:\n"
" Binary Sensor has datapoint ID %u",
this->sensor_id_);
}
} // namespace tuya
@@ -33,8 +33,10 @@ void TuyaTextSensor::setup() {
}
void TuyaTextSensor::dump_config() {
ESP_LOGCONFIG(TAG, "Tuya Text Sensor:");
ESP_LOGCONFIG(TAG, " Text Sensor has datapoint ID %u", this->sensor_id_);
ESP_LOGCONFIG(TAG,
"Tuya Text Sensor:\n"
" Text Sensor has datapoint ID %u",
this->sensor_id_);
}
} // namespace tuya