added btminer get_model and improved return on the rest of the get_models

This commit is contained in:
UpstreamData
2022-01-07 10:20:55 -07:00
parent 8ec8c57e31
commit 4e8ff9ea74
9 changed files with 52 additions and 102 deletions

View File

@@ -1,26 +1,9 @@
from API.btminer import BTMinerAPI
from miners import BaseMiner
from miners.btminer import BTMiner
class BTMinerM21(BaseMiner):
class BTMinerM21(BTMiner):
def __init__(self, ip: str) -> None:
api = BTMinerAPI(ip)
super().__init__(ip, api)
super().__init__(ip)
def __repr__(self) -> str:
return f"M21 - BTMiner: {str(self.ip)}"
async def get_hostname(self) -> str:
return "BTMiner Unknown"
async def send_config(self):
return None # ignore for now
async def restart_backend(self) -> None:
return None
async def reboot(self) -> None:
return None
async def get_config(self) -> None:
return None