From 8696255ccceb7a8578da07ab6b0e76a326583f4e Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Aug 2026 15:43:57 -0500 Subject: [PATCH] Give connection_index_ an in-class initializer like every sibling --- .../bluetooth_connection/bluetooth_connection_bluedroid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/bluetooth_connection/bluetooth_connection_bluedroid.h b/esphome/components/bluetooth_connection/bluetooth_connection_bluedroid.h index a0ba122be0..bd98dafc4c 100644 --- a/esphome/components/bluetooth_connection/bluetooth_connection_bluedroid.h +++ b/esphome/components/bluetooth_connection/bluetooth_connection_bluedroid.h @@ -119,7 +119,7 @@ class BluedroidGattClient final : public esp32_ble_tracker::ESPBTClient, public // Stored narrow (the enum is 4 bytes); widened at the esp_ble_gattc_open call. uint8_t remote_addr_type_{0}; esp32_ble_tracker::ConnectionType connection_type_{esp32_ble_tracker::ConnectionType::V3_WITHOUT_CACHE}; - uint8_t connection_index_; + uint8_t connection_index_{0}; // Terminates an in-flight stream (never send a partial list as authoritative) // and marks a cleaned cache unsafe to walk (Bluedroid asserts). bool services_released_ : 1 {false};