We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a4a02 commit de84de1Copy full SHA for de84de1
src/enapter/standalone/device.py
@@ -56,5 +56,4 @@ async def execute_command(self, name: str, args: CommandArgs) -> CommandResult:
56
command = getattr(self, self._command_prefix + name)
57
except AttributeError:
58
raise NotImplementedError() from None
59
- result = await command(**args)
60
- return result if result is not None else {}
+ return {"result": await command(**args)}
0 commit comments