refac: I lied, this is the last...

This commit is contained in:
Daan Selen
2025-09-16 23:16:59 +02:00
committed by Josiah Baldwin
parent 748e39d5b4
commit 7ba6989325
2 changed files with 1 additions and 5 deletions

View File

@@ -307,13 +307,9 @@ class Device(object):
bool: True on success, raise otherwise bool: True on success, raise otherwise
Raises: Raises:
:py:class:`~meshctrl.exceptions.ServerError`: Error text from server if there is a failure
:py:class:`~meshctrl.exceptions.SocketError`: Info about socket closure :py:class:`~meshctrl.exceptions.SocketError`: Info about socket closure
asyncio.TimeoutError: Command timed out asyncio.TimeoutError: Command timed out
''' '''
if isinstance(nodeids, str):
nodeids = [nodeids]
return self._session.remove_devices(self.nodeid, timeout) return self._session.remove_devices(self.nodeid, timeout)
async def sleep(self, timeout=None): async def sleep(self, timeout=None):

View File

@@ -1064,7 +1064,7 @@ class Session(object):
async def remove_devices(self, nodeids, timeout=None): async def remove_devices(self, nodeids, timeout=None):
''' '''
Remove device from MeshCentral Remove device(s) from MeshCentral
Args: Args:
nodeids (str|list[str]): nodeid(s) of the device(s) that have to be removed nodeids (str|list[str]): nodeid(s) of the device(s) that have to be removed