mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Print error in dump config if pn532 is marked failed.
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user