Check if a command exists in the API.
(self, name: str)
| 360 | return result.get("commands", []) |
| 361 | |
| 362 | def command_exists(self, name: str) -> bool: |
| 363 | """Check if a command exists in the API.""" |
| 364 | commands = self.get_available_commands() |
| 365 | return any(cmd.get("name") == name for cmd in commands) |
| 366 | |
| 367 | def set_operation_mode(self, mode: str) -> None: |
| 368 | """ |