1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-05-04 16:09:05 +00:00

chore(python): fix filters and expected vs actual responses

This commit is contained in:
M1nd3r 2025-04-16 16:52:58 +02:00
parent 1a2c96e95d
commit b76d1a05c6
2 changed files with 7 additions and 2 deletions

View File

@ -1032,7 +1032,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"":