diff --git a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp index f4b63f3a5d..33ea847497 100644 --- a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp +++ b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp @@ -199,6 +199,11 @@ void BluetoothProxy::loop() { return; } + // Early return if no advertisements pending + if (this->advertisement_count_ == 0) { + return; + } + // Flush any pending BLE advertisements that have been accumulated but not yet sent uint32_t now = App.get_loop_component_start_time();