bug: add kwargs to send_command.
This commit is contained in:
@@ -46,6 +46,7 @@ class BaseMinerAPI:
|
|||||||
parameters: Union[str, int, bool] = None,
|
parameters: Union[str, int, bool] = None,
|
||||||
ignore_errors: bool = False,
|
ignore_errors: bool = False,
|
||||||
allow_warning: bool = True,
|
allow_warning: bool = True,
|
||||||
|
**kwargs
|
||||||
) -> dict:
|
) -> dict:
|
||||||
"""Send an API command to the miner and return the result.
|
"""Send an API command to the miner and return the result.
|
||||||
|
|
||||||
@@ -65,7 +66,7 @@ class BaseMinerAPI:
|
|||||||
else ""
|
else ""
|
||||||
)
|
)
|
||||||
# create the command
|
# create the command
|
||||||
cmd = {"command": command}
|
cmd = {"command": command, **kwargs}
|
||||||
if parameters:
|
if parameters:
|
||||||
cmd["parameter"] = parameters
|
cmd["parameter"] = parameters
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user