From 9268ef7665b0c97a23d58c58b58899c44d61729d Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Wed, 25 May 2022 13:03:53 +1200 Subject: [PATCH] Print error in dump config if pn532 is marked failed. --- esphome/components/pn532/pn532.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/components/pn532/pn532.cpp b/esphome/components/pn532/pn532.cpp index 7ebf328cf..4c8c9ad2f 100644 --- a/esphome/components/pn532/pn532.cpp +++ b/esphome/components/pn532/pn532.cpp @@ -345,6 +345,8 @@ float PN532::get_setup_priority() const { return setup_priority::DATA; } void PN532::dump_config() { ESP_LOGCONFIG(TAG, "PN532:"); + if (this->is_failed()) + ESP_LOGE(TAG, "Component marked as failed. Check setup logs."); switch (this->error_code_) { case NONE: break;