1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-01 00:08:15 +00:00

Align setup status on dump

This commit is contained in:
Edward Firmo 2024-12-12 11:39:06 +01:00
parent ec366fe086
commit 77adb168ca

View File

@ -157,9 +157,9 @@ void ADCSensor::dump_config() {
LOG_PIN(" Pin: ", this->pin_); LOG_PIN(" Pin: ", this->pin_);
ESP_LOGCONFIG(TAG, " Channel: %d (Unit: %s)", this->channel_, this->is_adc1_ ? "ADC1" : "ADC2"); ESP_LOGCONFIG(TAG, " Channel: %d (Unit: %s)", this->channel_, this->is_adc1_ ? "ADC1" : "ADC2");
ESP_LOGCONFIG(TAG, " Setup Status:"); ESP_LOGCONFIG(TAG, " Setup Status:");
ESP_LOGCONFIG(TAG, " Handle Init: %s", this->handle_init_complete_ ? "OK" : "FAILED"); ESP_LOGCONFIG(TAG, " Handle Init: %s", this->handle_init_complete_ ? "OK" : "FAILED");
ESP_LOGCONFIG(TAG, " Config: %s", this->config_complete_ ? "OK" : "FAILED"); ESP_LOGCONFIG(TAG, " Config: %s", this->config_complete_ ? "OK" : "FAILED");
ESP_LOGCONFIG(TAG, " Calibration: %s", this->calibration_complete_ ? "OK" : "FAILED"); ESP_LOGCONFIG(TAG, " Calibration: %s", this->calibration_complete_ ? "OK" : "FAILED");
ESP_LOGCONFIG(TAG, " Overall Init: %s", this->init_complete_ ? "OK" : "FAILED"); ESP_LOGCONFIG(TAG, " Overall Init: %s", this->init_complete_ ? "OK" : "FAILED");
if (this->autorange_) { if (this->autorange_) {
ESP_LOGCONFIG(TAG, " Attenuation: auto"); ESP_LOGCONFIG(TAG, " Attenuation: auto");