mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
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, ```
This commit is contained in:
parent
62bd692a58
commit
e4ecaa433a
@ -36,7 +36,7 @@ async def async_load_history_from_system() -> dict[str, BluetoothServiceInfoBlea
|
|||||||
or history.device.name
|
or history.device.name
|
||||||
or history.device.address,
|
or history.device.address,
|
||||||
address=history.device.address,
|
address=history.device.address,
|
||||||
rssi=history.device.rssi,
|
rssi=history.advertisement_data.rssi,
|
||||||
manufacturer_data=history.advertisement_data.manufacturer_data,
|
manufacturer_data=history.advertisement_data.manufacturer_data,
|
||||||
service_data=history.advertisement_data.service_data,
|
service_data=history.advertisement_data.service_data,
|
||||||
service_uuids=history.advertisement_data.service_uuids,
|
service_uuids=history.advertisement_data.service_uuids,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user