Fix use of deprecated device.rssi in bluetooth scanner (#81690)

pull/81307/head
J. Nick Koston 2022-11-07 05:06:38 -06:00 committed by GitHub
parent 11a55d6d4c
commit 3184c8a526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ class HaScanner(BaseHaScanner):
service_info = BluetoothServiceInfoBleak(
name=advertisement_data.local_name or device.name or device.address,
address=device.address,
rssi=device.rssi,
rssi=advertisement_data.rssi,
manufacturer_data=advertisement_data.manufacturer_data,
service_data=advertisement_data.service_data,
service_uuids=advertisement_data.service_uuids,