Small changes to bluetooth RSSI tracking (#25056)
* Updated bt_proximity dependency * Closed bluetooth socket after RSSI request * Updated bt_proximity requirement in manifest
This commit is contained in:
parent
01b890f426
commit
fa8ae0865e
3 changed files with 5 additions and 3 deletions
|
@ -108,7 +108,9 @@ def setup_scanner(hass, config, see, discovery_info=None):
|
|||
result = bluetooth.lookup_name(mac, timeout=5)
|
||||
rssi = None
|
||||
if request_rssi:
|
||||
rssi = BluetoothRSSI(mac).request_rssi()
|
||||
client = BluetoothRSSI(mac)
|
||||
rssi = client.request_rssi()
|
||||
client.close()
|
||||
if result is None:
|
||||
# Could not lookup device name
|
||||
continue
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
"name": "Bluetooth tracker",
|
||||
"documentation": "https://www.home-assistant.io/components/bluetooth_tracker",
|
||||
"requirements": [
|
||||
"bt_proximity==0.1.2",
|
||||
"bt_proximity==0.2",
|
||||
"pybluez==0.22"
|
||||
],
|
||||
"dependencies": [],
|
||||
|
|
|
@ -302,7 +302,7 @@ brottsplatskartan==0.0.1
|
|||
brunt==0.1.3
|
||||
|
||||
# homeassistant.components.bluetooth_tracker
|
||||
bt_proximity==0.1.2
|
||||
bt_proximity==0.2
|
||||
|
||||
# homeassistant.components.bt_home_hub_5
|
||||
bthomehub5-devicelist==0.1.1
|
||||
|
|
Loading…
Add table
Reference in a new issue