File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -409,9 +409,7 @@ async def _load_from_cache(self) -> bool:
409409 return False
410410
411411 # Node Info
412- result : bool = await self ._node_info_load_from_cache ()
413- _LOGGER .debug ("_load_from_cache | load node_info | result=%s" , result )
414- if not result :
412+ if not await self ._node_info_load_from_cache ():
415413 _LOGGER .debug ("Node %s failed to load node_info from cache" , self .mac )
416414 return False
417415
@@ -489,7 +487,8 @@ async def _node_info_load_from_cache(self) -> bool:
489487 node_type : NodeType | None = None
490488 if (node_type_str := self ._get_cache (CACHE_NODE_TYPE )) is not None :
491489 node_type = NodeType (int (node_type_str ))
492- result = await self .update_node_details (
490+
491+ return await self .update_node_details (
493492 firmware = firmware ,
494493 hardware = hardware ,
495494 node_type = node_type ,
@@ -498,8 +497,6 @@ async def _node_info_load_from_cache(self) -> bool:
498497 relay_state = None ,
499498 logaddress_pointer = None ,
500499 )
501- _LOGGER .debug ("_node_info_load_from_cache returns %s" , result )
502- return result
503500
504501 # pylint: disable=too-many-arguments
505502 async def update_node_details (
@@ -590,7 +587,7 @@ async def update_node_details(
590587 minutes = 5
591588 ):
592589 await self ._available_update_state (True , timestamp )
593- _LOGGER . debug ( "update_node_details | complete=%s" , complete )
590+
594591 return complete
595592
596593 async def is_online (self ) -> bool :
You can’t perform that action at this time.
0 commit comments