refactor: reformat.

This commit is contained in:
upstreamdata
2024-01-18 15:47:52 -07:00
parent 4b5314a8f6
commit ce981d1787
3 changed files with 2 additions and 6 deletions

View File

@@ -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:

View File

@@ -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

View File

@@ -65,7 +65,7 @@ class LUXMiner(BaseMiner):
_api_cls = LUXMinerRPCAPI
api: LUXMinerRPCAPI
firmware = "LuxOS"
data_locations = LUXMINER_DATA_LOC