miner_factory returns a miner of the type intended
This commit is contained in:
11
miners/bosminer.py
Normal file
11
miners/bosminer.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from miners import BaseMiner
|
||||
from API.bosminer import BOSMinerAPI
|
||||
|
||||
|
||||
class BOSminer(BaseMiner):
|
||||
def __init__(self, ip: str):
|
||||
api = BOSMinerAPI(ip)
|
||||
super().__init__(ip, api)
|
||||
|
||||
def __repr__(self):
|
||||
return f"BOSminer: {str(self.ip)}"
|
||||
Reference in New Issue
Block a user