1
0
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:
J. Nick Koston
2026-01-04 14:05:17 -10:00
committed by GitHub
parent 850f189225
commit f41f0506c1

View File

@@ -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);
}