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