mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-04-21 09:39:02 +00:00
fixup! chore(python): fix filters and expected vs actual responses
This commit is contained in:
parent
22580b4890
commit
ffb840f1ec
@ -1003,7 +1003,6 @@ class SessionDebugWrapper(Session):
|
||||
msg = self._session._read()
|
||||
if isinstance(self.client, TrezorClientDebugLink):
|
||||
msg = self.client._filter_message(msg)
|
||||
self.client.notify_read(msg)
|
||||
return msg
|
||||
|
||||
def resume(self) -> None:
|
||||
|
@ -200,7 +200,13 @@ class SessionV1(Session):
|
||||
assert self.client._last_active_session is self
|
||||
if t.TYPE_CHECKING:
|
||||
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:
|
||||
if self.id == b"":
|
||||
|
Loading…
Reference in New Issue
Block a user