mirror of
https://github.com/esphome/esphome.git
synced 2025-10-28 05:33:53 +00:00
Introduce "communication failed" log macro (#8939)
This commit is contained in:
@@ -44,7 +44,7 @@ void TMP1075Sensor::update() {
|
||||
void TMP1075Sensor::dump_config() {
|
||||
LOG_SENSOR("", "TMP1075 Sensor", this);
|
||||
if (this->is_failed()) {
|
||||
ESP_LOGE(TAG, " Communication with TMP1075 failed!");
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
return;
|
||||
}
|
||||
ESP_LOGCONFIG(TAG, " limit low : %.4f °C", alert_limit_low_);
|
||||
|
||||
Reference in New Issue
Block a user