1
0
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:
J. Nick Koston
2026-01-04 16:52:03 -10:00
committed by GitHub
parent 1d0f36ba35
commit 4bc1a02fc2

View File

@@ -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);