mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
parent
aa37979100
commit
b8e4ce9ba1
2 changed files with 3 additions and 3 deletions
|
@ -314,7 +314,7 @@ class HardwarePluginToScan(NamedTuple):
|
||||||
exception: Optional[Exception]
|
exception: Optional[Exception]
|
||||||
|
|
||||||
|
|
||||||
PLACEHOLDER_HW_CLIENT_LABELS = {"", " "}
|
PLACEHOLDER_HW_CLIENT_LABELS = {None, "", " "}
|
||||||
|
|
||||||
|
|
||||||
class DeviceMgr(ThreadJob):
|
class DeviceMgr(ThreadJob):
|
||||||
|
@ -511,7 +511,7 @@ class DeviceMgr(ThreadJob):
|
||||||
'receive will be unspendable.').format(plugin.device))
|
'receive will be unspendable.').format(plugin.device))
|
||||||
|
|
||||||
def unpaired_device_infos(self, handler, plugin: 'HW_PluginBase', devices: List['Device'] = None,
|
def unpaired_device_infos(self, handler, plugin: 'HW_PluginBase', devices: List['Device'] = None,
|
||||||
include_failing_clients=False):
|
include_failing_clients=False) -> List['DeviceInfo']:
|
||||||
'''Returns a list of DeviceInfo objects: one for each connected,
|
'''Returns a list of DeviceInfo objects: one for each connected,
|
||||||
unpaired device accepted by the plugin.'''
|
unpaired device accepted by the plugin.'''
|
||||||
if not plugin.libraries_available:
|
if not plugin.libraries_available:
|
||||||
|
|
|
@ -159,7 +159,7 @@ class HardwareClientBase:
|
||||||
"""True if initialized, False if wiped."""
|
"""True if initialized, False if wiped."""
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
def label(self) -> str:
|
def label(self) -> Optional[str]:
|
||||||
"""The name given by the user to the device.
|
"""The name given by the user to the device.
|
||||||
|
|
||||||
Note: labels are shown to the user to help distinguish their devices,
|
Note: labels are shown to the user to help distinguish their devices,
|
||||||
|
|
Loading…
Add table
Reference in a new issue