From 5420b0106ad83024521e5aa220173d05a770e5f0 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 9 Aug 2026 00:35:54 -0500 Subject: [PATCH] Use the CORE platform property --- esphome/components/bluetooth_connection/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/bluetooth_connection/__init__.py b/esphome/components/bluetooth_connection/__init__.py index 6229e7b2fd..9dd6ac7099 100644 --- a/esphome/components/bluetooth_connection/__init__.py +++ b/esphome/components/bluetooth_connection/__init__.py @@ -32,7 +32,7 @@ def AUTO_LOAD() -> list[str]: serves tooling that resolves the manifest without a target.""" if CORE.is_esp32: return ["ble_device_base", "esp32_ble_tracker"] - if CORE.target_platform == PLATFORM_RP2: + if CORE.is_rp2: return ["ble_device_base", "rp2040_ble"] if CORE.target_platform is None: return ["ble_device_base", "esp32_ble_tracker", "rp2040_ble"]