From e4ecaa433a200585b747716a989c90d491d53e29 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 13 Nov 2022 04:28:49 -0600 Subject: [PATCH] Update bluetooth util for upcoming bleak (#82020) Fixes ``` Nov 08 21:41:14 homeassistant homeassistant[474]: /usr/src/homeassistant/homeassistant/components/bluetooth/util.py:39: FutureWarning: BLEDevice.rssi is deprecated and will be removed in a future version of Bleak, use AdvertisementData.rssi instead Nov 08 21:41:14 homeassistant homeassistant[474]: rssi=history.device.rssi, ``` --- homeassistant/components/bluetooth/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/bluetooth/util.py b/homeassistant/components/bluetooth/util.py index 181796d3d2d..abfba6b22bc 100644 --- a/homeassistant/components/bluetooth/util.py +++ b/homeassistant/components/bluetooth/util.py @@ -36,7 +36,7 @@ async def async_load_history_from_system() -> dict[str, BluetoothServiceInfoBlea or history.device.name or history.device.address, address=history.device.address, - rssi=history.device.rssi, + rssi=history.advertisement_data.rssi, manufacturer_data=history.advertisement_data.manufacturer_data, service_data=history.advertisement_data.service_data, service_uuids=history.advertisement_data.service_uuids,