mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +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
|
||||
|
||||
def __str__(self):
|
||||
return self.device
|
||||
return str(self.device)
|
||||
|
||||
@staticmethod
|
||||
def enumerate():
|
||||
raise NotImplementedError('This transport cannot enumerate devices')
|
||||
return [UdpTransport()]
|
||||
|
||||
@staticmethod
|
||||
def find_by_path(path=None):
|
||||
|
Loading…
Reference in New Issue
Block a user