Bluetooth MIDI devices are still visible even when turned off

I’m working on a React Native app that can connect to bluetooth midi devices. When a device is advertising and is in range, it is successfully shown in the nearby devices list with an unpaired status (see JuceMidiSupport.java), but when the device is turned off it stays in the list with the same unpaired status. Has anyone experienced this, and are there any tips/tricks on how to discard devices once they are offline?

Note: to get the nearby devices, I’m calling into the BluetoothMidiManager (getMidiBluetoothAddresses to list the devices, getBluetoothDeviceStatus to get the “unpaired” status), but this behaviour seems to be consistent in JUCE’s BluetoothMidiDevicePairingDialogue too.

Any help would be massively appreciated!