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:
@@ -38,6 +38,12 @@ class BluetoothStorage:
|
||||
"""Get all scanners."""
|
||||
return list(self._data.keys())
|
||||
|
||||
@callback
|
||||
def async_remove_advertisement_history(self, scanner: str) -> None:
|
||||
"""Remove discovered devices by scanner."""
|
||||
if self._data.pop(scanner, None):
|
||||
self._store.async_delay_save(self._async_get_data, SCANNER_SAVE_DELAY)
|
||||
|
||||
@callback
|
||||
def async_get_advertisement_history(
|
||||
self, scanner: str
|
||||
|
||||
Reference in New Issue
Block a user