mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Add bluetooth API to remove scanners that are no longer used (#135408)
This commit is contained in:
@@ -253,6 +253,11 @@ class HomeAssistantBluetoothManager(BluetoothManager):
|
||||
unregister = super().async_register_scanner(scanner, connection_slots)
|
||||
return partial(self._async_unregister_scanner, scanner, unregister)
|
||||
|
||||
@hass_callback
|
||||
def async_remove_scanner(self, source: str) -> None:
|
||||
"""Remove a scanner."""
|
||||
self.storage.async_remove_advertisement_history(source)
|
||||
|
||||
@hass_callback
|
||||
def _handle_config_entry_removed(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user