mirror of
https://github.com/esphome/esphome.git
synced 2026-02-08 00:31:58 +00:00
[pcf8574] Combine log statements to reduce loop blocking (#12941)
This commit is contained in:
@@ -21,9 +21,11 @@ void PCF8574Component::loop() {
|
||||
this->reset_pin_cache_();
|
||||
}
|
||||
void PCF8574Component::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "PCF8574:");
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"PCF8574:\n"
|
||||
" Is PCF8575: %s",
|
||||
YESNO(this->pcf8575_));
|
||||
LOG_I2C_DEVICE(this)
|
||||
ESP_LOGCONFIG(TAG, " Is PCF8575: %s", YESNO(this->pcf8575_));
|
||||
if (this->is_failed()) {
|
||||
ESP_LOGE(TAG, ESP_LOG_MSG_COMM_FAIL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user