Add bluetooth API to remove scanners that are no longer used (#135408)

This commit is contained in:
J. Nick Koston
2025-01-12 14:03:05 -10:00
committed by GitHub
parent 0a444de39c
commit c9a7afe439
6 changed files with 39 additions and 0 deletions

View File

@@ -183,6 +183,12 @@ def async_register_scanner(
return _get_manager(hass).async_register_scanner(scanner, connection_slots)
@hass_callback
def async_remove_scanner(hass: HomeAssistant, source: str) -> None:
"""Permanently remove a BleakScanner by source address."""
return _get_manager(hass).async_remove_scanner(source)
@hass_callback
def async_get_advertisement_callback(
hass: HomeAssistant,