From the user's guide:
"A set of flags can be passed to DiscoverDevices
to select which devices will be returned: ‘remembered’, ‘authenticated’,
‘unknown’, and ‘discoverable only’. When ‘discoverable only’ (new in v2.4) is
set, only devices in range and in discoverable mode will be returned.
When ‘unknown’ alone is set the same discoverable devices are found but any
devices in the remembered set will be removed from the list.
On desktop Windows with the Microsoft stack there is no
API to get the discoverable devices only, the remembered and discoverable
devices are returned merged into one list. ‘discoverable only’ thus does not
work on that platform, it is undefined whether it will return all or zero
devices."
The discoverableOnly flag returns an empty list currently, that seems much less confusing than returning a list that contains devices that haven't been in range! It might be worth us starting to open cases with Microsoft noting how annoying this lack of feature is...