Skip to content

Commit de84de1

Browse files
committed
standalone: device: wrap command result in object
1 parent e3a4a02 commit de84de1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/enapter/standalone/device.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,4 @@ async def execute_command(self, name: str, args: CommandArgs) -> CommandResult:
5656
command = getattr(self, self._command_prefix + name)
5757
except AttributeError:
5858
raise NotImplementedError() from None
59-
result = await command(**args)
60-
return result if result is not None else {}
59+
return {"result": await command(**args)}

0 commit comments

Comments
 (0)