diff --git a/src/viam/components/servo/servo.py b/src/viam/components/servo/servo.py index 8c8621a56..453cf1c30 100644 --- a/src/viam/components/servo/servo.py +++ b/src/viam/components/servo/servo.py @@ -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: diff --git a/src/viam/resource/base.py b/src/viam/resource/base.py index 100e483c0..06950048b 100644 --- a/src/viam/resource/base.py +++ b/src/viam/resource/base.py @@ -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