bug: fix some issues with dependencies, format, and remove poetry.lock
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
# limitations under the License. -
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
import logging
|
||||
from collections import namedtuple
|
||||
from typing import List, Optional, Tuple
|
||||
|
||||
|
||||
@@ -18,8 +18,6 @@ import logging
|
||||
from collections import namedtuple
|
||||
from typing import List, Optional, Tuple
|
||||
|
||||
import asyncssh
|
||||
|
||||
from pyasic.API.bmminer import BMMinerAPI
|
||||
from pyasic.config import MinerConfig
|
||||
from pyasic.data import Fan, HashBoard
|
||||
|
||||
@@ -18,7 +18,6 @@ import logging
|
||||
from collections import namedtuple
|
||||
from typing import List, Optional, Tuple, Union
|
||||
|
||||
import asyncssh
|
||||
import toml
|
||||
|
||||
from pyasic.API.bosminer import BOSMinerAPI
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
import logging
|
||||
from typing import List, Optional, Tuple
|
||||
|
||||
import asyncssh
|
||||
|
||||
from pyasic.config import MinerConfig
|
||||
from pyasic.data import Fan, HashBoard, MinerData
|
||||
from pyasic.data.error_codes import MinerErrorData
|
||||
|
||||
@@ -18,8 +18,6 @@ import logging
|
||||
from collections import namedtuple
|
||||
from typing import List, Optional, Tuple
|
||||
|
||||
import asyncssh
|
||||
|
||||
from pyasic.API.cgminer import CGMinerAPI
|
||||
from pyasic.config import MinerConfig
|
||||
from pyasic.data import Fan, HashBoard
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
# limitations under the License. -
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
from pyasic.errors import APIError
|
||||
|
||||
@@ -421,7 +421,7 @@ class BaseMiner(ABC):
|
||||
else:
|
||||
if not web_command_data == {"multicommand": False}:
|
||||
args_to_send[arg_name] = web_command_data
|
||||
except (KeyError, IndexError) as e:
|
||||
except (KeyError, IndexError):
|
||||
continue
|
||||
|
||||
function = getattr(self, self.data_locations[data_name]["cmd"])
|
||||
|
||||
@@ -26,8 +26,11 @@ from pyasic.miners.base import BaseMiner
|
||||
|
||||
class UnknownMiner(BaseMiner):
|
||||
def __init__(
|
||||
self, ip: str, *args, **kwargs
|
||||
) -> None: # noqa - ignore *args and **kwargs for signature consistency
|
||||
self,
|
||||
ip: str,
|
||||
*args,
|
||||
**kwargs, # noqa - ignore *args and **kwargs for signature consistency
|
||||
) -> None:
|
||||
super().__init__(ip)
|
||||
self.ip = ip
|
||||
self.api = UnknownAPI(ip)
|
||||
|
||||
Reference in New Issue
Block a user