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, 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