winrt: replace get_discovered_devices
Bring the winrt backend in line with other backends now that
get_discovered_devices is replaced by discovered_devices.
@@ -172,7 +172,8 @@ class BleakScannerWinRT(BaseBleakScanner):
# TODO: Handle AdvertisementFilter parameters
self._advertisement_filter = kwargs["AdvertisementFilter"]
- async def get_discovered_devices(self) -> List[BLEDevice]:
+ @property
+ def discovered_devices(self) -> List[BLEDevice]:
found = []
for event_args in list(self._devices.values()):
new_device = self._parse_event_args(event_args)
