mirror of
https://github.com/home-assistant/core.git
synced 2025-10-18 08:09:33 +00:00
Add bluetooth API to remove scanners that are no longer used (#135408)
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user