Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stuqdog committed Jan 30, 2025
1 parent 2ef1ce9 commit 51dea8b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/viam/robot/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ async def _with_channel(cls, channel: Union[Channel, ViamChannel], options: Opti
)

try:
if options.dial_options.with_synchronous_connect:
synchronous_connect = options.dial_options.with_synchronous_connect if options.dial_options else False
if synchronous_connect:
# the user has asked for a synchronous connect, so delay returning the robot
# client until it is running.
await self.wait_until_ready()
Expand Down Expand Up @@ -448,7 +449,7 @@ async def _check_connection(self, check_every: int, reconnect_every: int):
# there isn't a programmatic way for a user to detect this and therefore call
# expect changes in status or call `wait_until_ready`. So, let's make sure the machine
# is ready.
self.wait_until_ready()
await self.wait_until_ready()

def get_component(self, name: ResourceName) -> ComponentBase:
"""Get a component using its ResourceName.
Expand Down

0 comments on commit 51dea8b

Please sign in to comment.