mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 15:30:55 +00:00
udp: fix __str__ method and allow simple enumeration
This commit is contained in:
parent
f8a277dfba
commit
31c4836073
@ -52,11 +52,11 @@ class UdpTransport(Transport):
|
|||||||
self.socket = None
|
self.socket = None
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.device
|
return str(self.device)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def enumerate():
|
def enumerate():
|
||||||
raise NotImplementedError('This transport cannot enumerate devices')
|
return [UdpTransport()]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def find_by_path(path=None):
|
def find_by_path(path=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user