mirror of
https://github.com/esphome/esphome.git
synced 2026-01-09 11:40:50 -07:00
[ufire_ec] Combine log statements to reduce loop blocking (#12925)
This commit is contained in:
@@ -102,16 +102,16 @@ void UFireECComponent::write_data_(uint8_t reg, float data) {
|
||||
}
|
||||
|
||||
void UFireECComponent::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "uFire-EC");
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"uFire-EC:\n"
|
||||
" Temperature Compensation: %f\n"
|
||||
" Temperature Coefficient: %f",
|
||||
this->temperature_compensation_, this->temperature_coefficient_);
|
||||
LOG_I2C_DEVICE(this)
|
||||
LOG_UPDATE_INTERVAL(this);
|
||||
LOG_SENSOR(" ", "EC Sensor", this->ec_sensor_);
|
||||
LOG_SENSOR(" ", "Temperature Sensor", this->temperature_sensor_);
|
||||
LOG_SENSOR(" ", "Temperature Sensor external", this->temperature_sensor_external_);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
" Temperature Compensation: %f\n"
|
||||
" Temperature Coefficient: %f",
|
||||
this->temperature_compensation_, this->temperature_coefficient_);
|
||||
}
|
||||
|
||||
} // namespace ufire_ec
|
||||
|
||||
Reference in New Issue
Block a user