From 78785682603aa3c1ab1215fd29afae3b2a47b024 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 18 Nov 2025 02:55:34 +0000 Subject: [PATCH] [bthome] Add USE_ESP32_BLE_UUID define Add USE_ESP32_BLE_UUID compile-time define to enable UUID support in the BTHome component, consistent with other BLE components like esp32_ble_beacon and esp32_ble_server. --- esphome/components/bthome/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/bthome/__init__.py b/esphome/components/bthome/__init__.py index a707031ddf..4466d3c638 100644 --- a/esphome/components/bthome/__init__.py +++ b/esphome/components/bthome/__init__.py @@ -224,6 +224,7 @@ async def to_code(config): advertise_immediately = measurement[CONF_ADVERTISE_IMMEDIATELY] cg.add(var.add_binary_measurement(sens, object_id, advertise_immediately)) + cg.add_define("USE_ESP32_BLE_UUID") cg.add_define("USE_ESP32_BLE_ADVERTISING") add_idf_sdkconfig_option("CONFIG_BT_ENABLED", True)