added get_model to get the model of the miner, and reformatted the style of the miner factory getting miner to get a different miner for each type of supported miner
This commit is contained in:
@@ -10,3 +10,8 @@ class BaseMiner:
|
||||
def __init__(self, ip: str, api: BMMinerAPI | BOSMinerAPI | CGMinerAPI | BTMinerAPI | UnknownAPI) -> None:
|
||||
self.ip = ipaddress.ip_address(ip)
|
||||
self.api = api
|
||||
self.api_type = None
|
||||
self.model = None
|
||||
|
||||
def _init(self):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user