feat: add remove_device function

This commit is contained in:
Daan Selen
2025-09-15 22:28:57 +02:00
committed by Josiah Baldwin
parent 3bcedf5610
commit b0d071d87f

View File

@@ -1080,7 +1080,7 @@ class Session(object):
''' '''
if isinstance(nodeids, str): if isinstance(nodeids, str):
nodeids = [nodeids] nodeids = [nodeids]
data = await self._send_command({ "action": 'removedevices', "nodeids": nodeids}, "remove_devices", timeout=timeout) data = await self._send_command({ "action": 'removedevices', "nodeids": nodeids}, "remove_devices", timeout=timeout)
if data.get("result", "ok").lower() != "ok": if data.get("result", "ok").lower() != "ok":