From a669c6b765410d41ce774cc346872325ffd5e6d7 Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 25 Aug 2020 16:34:42 +0200 Subject: [PATCH] trezor: use `init_device` instead of `ping` to check connection (fixes #6457) (#6471) --- electrum/plugins/trezor/clientbase.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/electrum/plugins/trezor/clientbase.py b/electrum/plugins/trezor/clientbase.py index e7f1057b8..0398ac39a 100644 --- a/electrum/plugins/trezor/clientbase.py +++ b/electrum/plugins/trezor/clientbase.py @@ -112,8 +112,7 @@ class TrezorClientBase(HardwareClientBase, Logger): return True try: - res = self.client.ping("electrum pinging device") - assert res == "electrum pinging device" + self.client.init_device() except BaseException: return False return True