feature: add allow_warning to get_data to allow suppressing warnings.

This commit is contained in:
Upstream Data
2022-11-07 20:35:23 -07:00
parent 2c7e0e3efe
commit 997a1bbe31
15 changed files with 30 additions and 28 deletions

View File

@@ -80,7 +80,7 @@ class CGMinerA7X(CGMiner):
)
return mac
async def get_data(self):
async def get_data(self, allow_warning: bool = True):
data = MinerData(
ip=str(self.ip),
ideal_chips=self.nominal_chips * self.ideal_hashboards,
@@ -100,7 +100,7 @@ class CGMinerA7X(CGMiner):
miner_data = None
for i in range(PyasicSettings().miner_get_data_retries):
miner_data = await self.api.multicommand(
"version", "summary", "pools", "stats"
"version", "summary", "pools", "stats", allow_warning=allow_warning
)
if miner_data:
break