@@ -376,6 +376,9 @@ async def _get_hashboards(
376376 rpc_devdetails : dict = None ,
377377 rpc_devs : dict = None ,
378378 ) -> List [HashBoard ]:
379+ if self .expected_hashboards is None :
380+ return []
381+
379382 hashboards = [
380383 HashBoard (slot = i , expected_chips = self .expected_chips )
381384 for i in range (self .expected_hashboards )
@@ -473,6 +476,9 @@ async def _get_wattage_limit(self, rpc_tunerstatus: dict = None) -> Optional[int
473476 pass
474477
475478 async def _get_fans (self , rpc_fans : dict = None ) -> List [Fan ]:
479+ if self .expected_fans is None :
480+ return []
481+
476482 if rpc_fans is None :
477483 try :
478484 rpc_fans = await self .rpc .fans ()
@@ -926,6 +932,9 @@ async def _get_expected_hashrate(
926932 pass
927933
928934 async def _get_hashboards (self , grpc_hashboards : dict = None ) -> List [HashBoard ]:
935+ if self .expected_hashboards is None :
936+ return []
937+
929938 hashboards = [
930939 HashBoard (slot = i , expected_chips = self .expected_chips )
931940 for i in range (self .expected_hashboards )
@@ -997,6 +1006,9 @@ async def _get_wattage_limit(
9971006 pass
9981007
9991008 async def _get_fans (self , grpc_cooling_state : dict = None ) -> List [Fan ]:
1009+ if self .expected_fans is None :
1010+ return []
1011+
10001012 if grpc_cooling_state is None :
10011013 try :
10021014 grpc_cooling_state = await self .web .get_cooling_state ()
0 commit comments