fix(teleoperators): use property is_connected (#1075)

This commit is contained in:
Steven Palma
2025-05-07 10:52:44 +02:00
committed by GitHub
parent 2e528a8b12
commit e4d4754600

View File

@@ -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()`."
)