finish adding support for a bunch of new avalonminers

This commit is contained in:
UpstreamData
2022-06-09 14:38:51 -06:00
parent 078579d8e1
commit f7309decdb
7 changed files with 78 additions and 22 deletions

View File

@@ -33,7 +33,7 @@ class CGMiner(BaseMiner):
return self.model
return None
async def get_hostname(self) -> str:
async def get_hostname(self) -> str or None:
if self.hostname:
return self.hostname
try:
@@ -44,9 +44,9 @@ class CGMiner(BaseMiner):
self.hostname = host
return self.hostname
else:
return "?"
return None
except Exception:
return "?"
return None
async def send_ssh_command(self, cmd):
result = None