mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-05-05 16:39:08 +00:00
chore(python): fix filters and expected vs actual responses
This commit is contained in:
parent
1a2c96e95d
commit
b76d1a05c6
@ -1032,7 +1032,6 @@ class SessionDebugWrapper(Session):
|
|||||||
msg = self._session._read()
|
msg = self._session._read()
|
||||||
if isinstance(self.client, TrezorClientDebugLink):
|
if isinstance(self.client, TrezorClientDebugLink):
|
||||||
msg = self.client._filter_message(msg)
|
msg = self.client._filter_message(msg)
|
||||||
self.client.notify_read(msg)
|
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
def resume(self) -> None:
|
def resume(self) -> None:
|
||||||
|
@ -200,7 +200,13 @@ class SessionV1(Session):
|
|||||||
assert self.client._last_active_session is self
|
assert self.client._last_active_session is self
|
||||||
if t.TYPE_CHECKING:
|
if t.TYPE_CHECKING:
|
||||||
assert isinstance(self.client.protocol, ProtocolV1Channel)
|
assert isinstance(self.client.protocol, ProtocolV1Channel)
|
||||||
return self.client.protocol.read()
|
resp = self.client.protocol.read()
|
||||||
|
|
||||||
|
from ..debuglink import TrezorClientDebugLink
|
||||||
|
|
||||||
|
if isinstance(self.client, TrezorClientDebugLink):
|
||||||
|
self.client.notify_read(resp)
|
||||||
|
return resp
|
||||||
|
|
||||||
def init_session(self, derive_cardano: bool | None = None) -> None:
|
def init_session(self, derive_cardano: bool | None = None) -> None:
|
||||||
if self.id == b"":
|
if self.id == b"":
|
||||||
|
Loading…
Reference in New Issue
Block a user