From a2a9145a874367754ae7581189e4747853a60b23 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 25 Apr 2026 13:47:52 -0500 Subject: [PATCH] [bluetooth_proxy] Drop redundant remote_bda_ write in connect handler get_connection_(msg.address, true) already populates remote_bda_ via set_address(): either the slot was found because get_address() == msg.address (so address_ and remote_bda_ already encode it), or a free slot was reserved and set_address(msg.address) was called, which writes remote_bda_[0..5] from the same bytes. The follow-up uint64_to_bd_addr(msg.address, connection->remote_bda_) just rewrites the identical bytes. --- esphome/components/bluetooth_proxy/bluetooth_proxy.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp index c69163b1f7..a85bd31a0d 100644 --- a/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp +++ b/esphome/components/bluetooth_proxy/bluetooth_proxy.cpp @@ -201,7 +201,6 @@ void BluetoothProxy::bluetooth_device_request(const api::BluetoothDeviceRequest connection->set_connection_type(espbt::ConnectionType::V3_WITHOUT_CACHE); this->log_connection_info_(connection, "v3 without cache"); } - uint64_to_bd_addr(msg.address, connection->remote_bda_); connection->set_remote_addr_type(static_cast(msg.address_type)); connection->set_state(espbt::ClientState::DISCOVERED); this->send_connections_free();