mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 16:30:22 +00:00
Surface a degraded mixed client in component status
The table-build skip sets a warning cleared by the next successful fan-out.
This commit is contained in:
@@ -247,6 +247,7 @@ bool BLEClient::handle_gatt_search_cmpl_(esp_gatt_status_t status) {
|
||||
// Only the table build failed; legacy nodes read the base's services_
|
||||
// and keep the link. Gatt nodes catch the next connection.
|
||||
ESP_LOGW(TAG, "[%s] Service table build failed; gatt nodes skip this connection", this->address_str());
|
||||
this->status_set_warning(LOG_STR("gatt nodes inactive: service table build failed"));
|
||||
} else {
|
||||
this->gatt_connected_ = true;
|
||||
auto view = table.view();
|
||||
@@ -260,6 +261,7 @@ bool BLEClient::handle_gatt_search_cmpl_(esp_gatt_status_t status) {
|
||||
}
|
||||
}
|
||||
this->gatt_backoff_.reset();
|
||||
this->status_clear_warning();
|
||||
}
|
||||
// Promote so the legacy release condition can fire.
|
||||
for (auto *node : this->gatt_nodes_)
|
||||
|
||||
Reference in New Issue
Block a user