mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
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
@ -108,7 +108,9 @@ def setup_scanner(hass, config, see, discovery_info=None):
|
|||||||
result = bluetooth.lookup_name(mac, timeout=5)
|
result = bluetooth.lookup_name(mac, timeout=5)
|
||||||
rssi = None
|
rssi = None
|
||||||
if request_rssi:
|
if request_rssi:
|
||||||
rssi = BluetoothRSSI(mac).request_rssi()
|
client = BluetoothRSSI(mac)
|
||||||
|
rssi = client.request_rssi()
|
||||||
|
client.close()
|
||||||
if result is None:
|
if result is None:
|
||||||
# Could not lookup device name
|
# Could not lookup device name
|
||||||
continue
|
continue
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Bluetooth tracker",
|
"name": "Bluetooth tracker",
|
||||||
"documentation": "https://www.home-assistant.io/components/bluetooth_tracker",
|
"documentation": "https://www.home-assistant.io/components/bluetooth_tracker",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"bt_proximity==0.1.2",
|
"bt_proximity==0.2",
|
||||||
"pybluez==0.22"
|
"pybluez==0.22"
|
||||||
],
|
],
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
|
@ -302,7 +302,7 @@ brottsplatskartan==0.0.1
|
|||||||
brunt==0.1.3
|
brunt==0.1.3
|
||||||
|
|
||||||
# homeassistant.components.bluetooth_tracker
|
# homeassistant.components.bluetooth_tracker
|
||||||
bt_proximity==0.1.2
|
bt_proximity==0.2
|
||||||
|
|
||||||
# homeassistant.components.bt_home_hub_5
|
# homeassistant.components.bt_home_hub_5
|
||||||
bthomehub5-devicelist==0.1.1
|
bthomehub5-devicelist==0.1.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user