Fixed not clearing old devices when restarting scanner in BlueZ backed.
This makes sure we start fresh each time we restart a scanner.
@@ -73,6 +73,9 @@ class BleakScannerBlueZDBus(BaseBleakScanner):
async def start(self):
self._bus = await MessageBus(bus_type=BusType.SYSTEM).connect()
+ self._devices.clear()
+ self._cached_devices.clear()
+
# Add signal listeners
self._bus.add_message_handler(self._parse_msg)
