mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 00:31:58 +00:00
[shtcx] Combine log statements to reduce loop blocking (#12960)
This commit is contained in:
@@ -49,8 +49,10 @@ void SHTCXComponent::setup() {
|
||||
}
|
||||
|
||||
void SHTCXComponent::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "SHTCx:");
|
||||
ESP_LOGCONFIG(TAG, " Model: %s (%04x)", to_string(this->type_), this->sensor_id_);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"SHTCx:\n"
|
||||
" Model: %s (%04x)",
|
||||
to_string(this->type_), this->sensor_id_);
|
||||
LOG_I2C_DEVICE(this);
|
||||
if (this->is_failed()) {
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
|
||||
Reference in New Issue
Block a user