1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 12:22:20 +01:00

Introduce "communication failed" log macro (#8939)

This commit is contained in:
Keith Burzinski
2025-05-29 01:59:38 -05:00
committed by GitHub
parent 64e4589f4e
commit 44f1ff10e6
109 changed files with 162 additions and 152 deletions

View File

@@ -118,7 +118,7 @@ void BH1750Sensor::dump_config() {
LOG_SENSOR("", "BH1750", this);
LOG_I2C_DEVICE(this);
if (this->is_failed()) {
ESP_LOGE(TAG, "Communication with BH1750 failed!");
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL_FOR, this->get_name().c_str());
}
LOG_UPDATE_INTERVAL(this);