Skip to content

Commit

Permalink
DOCS-2951: Make edits from QA to component api code samples (#752)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguequierre authored Oct 2, 2024
1 parent 7c7f37c commit 5cb39fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/viam/components/servo/servo.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ async def is_moving(self) -> bool:
my_servo = Servo.from_robot(robot=robot, name="my_servo")
print(my_servo.is_moving())
print(await my_servo.is_moving())
Returns:
Expand Down
2 changes: 1 addition & 1 deletion src/viam/resource/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async def do_command(
::
command = {"cmd": "test", "data1": 500}
result = component.do(command)
result = await component.do_command(command)
Args:
command (Mapping[str, ValueTypes]): The command to execute
Expand Down

0 comments on commit 5cb39fd

Please sign in to comment.