diff --git a/python/src/trezorlib/protobuf.py b/python/src/trezorlib/protobuf.py index 1fd6699f3..401e27d7d 100644 --- a/python/src/trezorlib/protobuf.py +++ b/python/src/trezorlib/protobuf.py @@ -415,7 +415,7 @@ def format_message( if isinstance(value, int): ftype = get_type(name) if isinstance(ftype, EnumType): - return ftype.to_str(value) + return "{} ({})".format(ftype.to_str(value), value) return repr(value)