mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
Introduce "communication failed" log macro (#8939)
This commit is contained in:
@@ -32,7 +32,7 @@ void HTU21DComponent::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "HTU21D:");
|
||||
LOG_I2C_DEVICE(this);
|
||||
if (this->is_failed()) {
|
||||
ESP_LOGE(TAG, "Communication with HTU21D failed!");
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
}
|
||||
LOG_UPDATE_INTERVAL(this);
|
||||
LOG_SENSOR(" ", "Temperature", this->temperature_);
|
||||
|
||||
Reference in New Issue
Block a user