diff --git a/lerobot/common/teleoperators/keyboard/teleop_keyboard.py b/lerobot/common/teleoperators/keyboard/teleop_keyboard.py index 76e3fad0..ecbda318 100644 --- a/lerobot/common/teleoperators/keyboard/teleop_keyboard.py +++ b/lerobot/common/teleoperators/keyboard/teleop_keyboard.py @@ -119,7 +119,7 @@ class KeyboardTeleop(Teleoperator): def get_action(self) -> dict[str, Any]: before_read_t = time.perf_counter() - if not self._is_connected: + if not self.is_connected: raise DeviceNotConnectedError( "KeyboardTeleop is not connected. You need to run `connect()` before `get_action()`." )