Skip to content

Commit

Permalink
Merge pull request #198 from qiaoccolato/main
Browse files Browse the repository at this point in the history
reformat protobuf import
  • Loading branch information
uael committed Jun 7, 2023
2 parents 54be8b3 + 6897450 commit 7f987dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion bumble/pandora/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
HCI_REMOTE_USER_TERMINATED_CONNECTION_ERROR,
Address,
)
from google.protobuf import any_pb2, empty_pb2 # pytype: disable=pyi-error
from google.protobuf import any_pb2 # pytype: disable=pyi-error
from google.protobuf import empty_pb2 # pytype: disable=pyi-error
from pandora.host_grpc_aio import HostServicer
from pandora.host_pb2 import (
NOT_CONNECTABLE,
Expand Down
11 changes: 4 additions & 7 deletions bumble/pandora/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@
from bumble.hci import HCI_Error
from bumble.pairing import PairingConfig, PairingDelegate as BasePairingDelegate
from contextlib import suppress
from google.protobuf import (
any_pb2,
empty_pb2,
wrappers_pb2,
) # pytype: disable=pyi-error
from google.protobuf.wrappers_pb2 import BoolValue # pytype: disable=pyi-error
from google.protobuf import any_pb2 # pytype: disable=pyi-error
from google.protobuf import empty_pb2 # pytype: disable=pyi-error
from google.protobuf import wrappers_pb2 # pytype: disable=pyi-error
from pandora.host_pb2 import Connection
from pandora.security_grpc_aio import SecurityServicer, SecurityStorageServicer
from pandora.security_pb2 import (
Expand Down Expand Up @@ -513,7 +510,7 @@ async def IsBonded(
else:
is_bonded = False

return BoolValue(value=is_bonded)
return wrappers_pb2.BoolValue(value=is_bonded)

@utils.rpc
async def DeleteBond(
Expand Down

0 comments on commit 7f987dc

Please sign in to comment.