mirror of
https://github.com/esphome/esphome.git
synced 2025-10-21 19:23:45 +01:00
Introduce "communication failed" log macro (#8939)
This commit is contained in:
@@ -113,7 +113,7 @@ void LTRAlsPs501Component::dump_config() {
|
||||
LOG_SENSOR(" ", "Actual gain", this->actual_gain_sensor_);
|
||||
|
||||
if (this->is_failed()) {
|
||||
ESP_LOGE(TAG, "Communication with I2C LTR-501/301/558 failed!");
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user