finished updating the miner type handlers to create subclasses of the backend and type to create a miner, each of which handles its own data to simplify creation of new miner types
This commit is contained in:
@@ -4,8 +4,10 @@ from miners import BaseMiner
|
||||
|
||||
class UnknownMiner(BaseMiner):
|
||||
def __init__(self, ip: str) -> None:
|
||||
api = UnknownAPI(ip)
|
||||
super().__init__(ip, api)
|
||||
super().__init__()
|
||||
self.ip = ip
|
||||
self.api = UnknownAPI(ip)
|
||||
self.model = "Unknown"
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"Unknown: {str(self.ip)}"
|
||||
|
||||
Reference in New Issue
Block a user