refactor: reformat.
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
# limitations under the License. -
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
import logging
|
||||
from typing import List, Optional
|
||||
|
||||
from pyasic.config import MinerConfig
|
||||
@@ -115,7 +114,6 @@ class BMMiner(BaseMiner):
|
||||
|
||||
return self.fw_ver
|
||||
|
||||
|
||||
async def _get_hashrate(self, api_summary: dict = None) -> Optional[float]:
|
||||
# get hr from API
|
||||
if api_summary is None:
|
||||
|
||||
@@ -522,9 +522,7 @@ class BOSMiner(BaseMiner):
|
||||
if self.light:
|
||||
return self.light
|
||||
try:
|
||||
data = (
|
||||
await self.ssh.get_led_status()
|
||||
).strip()
|
||||
data = (await self.ssh.get_led_status()).strip()
|
||||
self.light = False
|
||||
if data == "50":
|
||||
self.light = True
|
||||
|
||||
@@ -65,7 +65,7 @@ class LUXMiner(BaseMiner):
|
||||
|
||||
_api_cls = LUXMinerRPCAPI
|
||||
api: LUXMinerRPCAPI
|
||||
|
||||
|
||||
firmware = "LuxOS"
|
||||
|
||||
data_locations = LUXMINER_DATA_LOC
|
||||
|
||||
Reference in New Issue
Block a user