bug: add kwargs to send_command.

This commit is contained in:
Upstream Data
2023-04-27 18:23:58 -06:00
parent c7d6f6cd9f
commit d59f29b582

View File

@@ -46,6 +46,7 @@ class BaseMinerAPI:
parameters: Union[str, int, bool] = None,
ignore_errors: bool = False,
allow_warning: bool = True,
**kwargs
) -> dict:
"""Send an API command to the miner and return the result.
@@ -65,7 +66,7 @@ class BaseMinerAPI:
else ""
)
# create the command
cmd = {"command": command}
cmd = {"command": command, **kwargs}
if parameters:
cmd["parameter"] = parameters