mirror of
https://github.com/esphome/esphome.git
synced 2025-11-18 15:55:46 +00:00
Don't allow debug component if you don't have at least debug logging level (#4076)
This commit is contained in:
@@ -41,12 +41,6 @@ void DebugComponent::dump_config() {
|
||||
std::string reset_reason;
|
||||
device_info.reserve(256);
|
||||
|
||||
#ifndef ESPHOME_LOG_HAS_DEBUG
|
||||
ESP_LOGE(TAG, "Debug Component requires debug log level!");
|
||||
this->status_set_error();
|
||||
return;
|
||||
#endif
|
||||
|
||||
ESP_LOGCONFIG(TAG, "Debug component:");
|
||||
#ifdef USE_TEXT_SENSOR
|
||||
LOG_TEXT_SENSOR(" ", "Device info", this->device_info_);
|
||||
|
||||
Reference in New Issue
Block a user