wizard/hw: show transport type when listing HWDs
This commit is contained in:
@@ -625,10 +625,14 @@ class ColdcardPlugin(HW_PluginBase):
|
||||
fn = CKCC_SIMULATOR_PATH
|
||||
|
||||
if os.path.exists(fn):
|
||||
return [Device(fn, -1, fn, (COINKITE_VID, CKCC_SIMULATED_PID), 0)]
|
||||
return [Device(path=fn,
|
||||
interface_number=-1,
|
||||
id_=fn,
|
||||
product_key=(COINKITE_VID, CKCC_SIMULATED_PID),
|
||||
usage_page=0,
|
||||
transport_ui_string='simulator')]
|
||||
|
||||
return []
|
||||
|
||||
|
||||
def create_client(self, device, handler):
|
||||
if handler:
|
||||
|
||||
@@ -105,7 +105,13 @@ class SafeTPlugin(HW_PluginBase):
|
||||
|
||||
def enumerate(self):
|
||||
devices = self.transport_handler.enumerate_devices()
|
||||
return [Device(d.get_path(), -1, d.get_path(), 'Safe-T mini', 0) for d in devices]
|
||||
return [Device(path=d.get_path(),
|
||||
interface_number=-1,
|
||||
id_=d.get_path(),
|
||||
product_key='Safe-T mini',
|
||||
usage_page=0,
|
||||
transport_ui_string=d.get_path())
|
||||
for d in devices]
|
||||
|
||||
def create_client(self, device, handler):
|
||||
try:
|
||||
|
||||
@@ -106,7 +106,13 @@ class TrezorPlugin(HW_PluginBase):
|
||||
|
||||
def enumerate(self):
|
||||
devices = self.transport_handler.enumerate_devices()
|
||||
return [Device(d.get_path(), -1, d.get_path(), 'TREZOR', 0) for d in devices]
|
||||
return [Device(path=d.get_path(),
|
||||
interface_number=-1,
|
||||
id_=d.get_path(),
|
||||
product_key='TREZOR',
|
||||
usage_page=0,
|
||||
transport_ui_string=d.get_path())
|
||||
for d in devices]
|
||||
|
||||
def create_client(self, device, handler):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user