1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-20 20:22:27 +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

@@ -163,7 +163,7 @@ void CCS811Component::dump_config() {
if (this->is_failed()) {
switch (this->error_code_) {
case COMMUNICATION_FAILED:
ESP_LOGW(TAG, "Communication failed! Is the sensor connected?");
ESP_LOGW(TAG, ESP_LOG_MSG_COMM_FAIL);
break;
case INVALID_ID:
ESP_LOGW(TAG, "Sensor reported an invalid ID. Is this a CCS811?");