1
0
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:
M1nd3r 2025-04-16 19:33:20 +02:00
parent 22580b4890
commit ffb840f1ec
2 changed files with 7 additions and 2 deletions

View File

@ -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:

View File

@ -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"":