mirror of
https://github.com/esphome/esphome.git
synced 2026-05-28 04:55:48 +08:00
[bme68x] Print error when no sensors are configured (#11976)
This commit is contained in:
@@ -70,6 +70,9 @@ void BME68xBSEC2Component::dump_config() {
|
|||||||
if (this->is_failed()) {
|
if (this->is_failed()) {
|
||||||
ESP_LOGE(TAG, "Communication failed (BSEC2 status: %d, BME68X status: %d)", this->bsec_status_,
|
ESP_LOGE(TAG, "Communication failed (BSEC2 status: %d, BME68X status: %d)", this->bsec_status_,
|
||||||
this->bme68x_status_);
|
this->bme68x_status_);
|
||||||
|
if (this->bsec_status_ == BSEC_I_SU_SUBSCRIBEDOUTPUTGATES) {
|
||||||
|
ESP_LOGE(TAG, "No sensors, add at least one sensor to the config");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this->algorithm_output_ != ALGORITHM_OUTPUT_IAQ) {
|
if (this->algorithm_output_ != ALGORITHM_OUTPUT_IAQ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user