Document async_remove_scanner Bluetooth API (#2527)

This commit is contained in:
J. Nick Koston 2025-01-13 00:52:12 -10:00 committed by GitHub
parent 435f5031e3
commit a801653021
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
```