updated the gui to get the model

This commit is contained in:
UpstreamData
2022-01-07 10:35:25 -07:00
parent 770b17c86b
commit c93d99b27c
5 changed files with 17 additions and 14 deletions

View File

@@ -12,6 +12,3 @@ class BaseMiner:
self.api = api
self.api_type = None
self.model = None
def _init(self):
pass

View File

@@ -27,7 +27,7 @@ class BTMiner(BaseMiner):
if host_data:
return host_data["Msg"]["hostname"]
except APIError:
return "BTMiner ?"
return "?"
async def send_config(self, _):
return None # ignore for now

View File

@@ -10,6 +10,9 @@ class UnknownMiner(BaseMiner):
def __repr__(self) -> str:
return f"Unknown: {str(self.ip)}"
def get_model(self):
return "Unknown"
async def send_config(self, _):
return None