mirror of
https://github.com/esphome/esphome.git
synced 2026-09-17 10:08:40 +00:00
[tuya] Combine log statements to reduce loop blocking (#12924)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user