mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-13 20:36:29 +00:00
Document async_remove_scanner Bluetooth API (#2527)
This commit is contained in:
parent
435f5031e3
commit
a801653021
@ -243,3 +243,13 @@ callback = bluetooth.async_get_advertisement_callback(hass)
|
||||
|
||||
callback(BluetoothServiceInfoBleak(...))
|
||||
```
|
||||
|
||||
### Removing an external scanner
|
||||
|
||||
To permanently remove an external scanner, call the `bluetooth.async_remove_scanner` API with the `source` (MAC address) of the scanner. This will remove any advertisement history associated with the scanner.
|
||||
|
||||
```python
|
||||
from homeassistant.components import bluetooth
|
||||
|
||||
bluetooth.async_remove_scanner(hass, source)
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user