Skip to content

Commit be0d125

Browse files
committed
Formatting
1 parent 9e3ad65 commit be0d125

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugwise_usb/nodes/node.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,15 +403,18 @@ async def _load_from_cache(self) -> bool:
403403
"""Load states from previous cached information. Return True if successful."""
404404
if self._loaded:
405405
return True
406+
406407
if not await self._load_cache_file():
407408
_LOGGER.debug("Node %s failed to load cache file", self.mac)
408409
return False
410+
409411
# Node Info
410412
result: bool = await self._node_info_load_from_cache()
411413
_LOGGER.debug("_load_from_cache | load node_info | result=%s", result)
412414
if not result:
413415
_LOGGER.debug("Node %s failed to load node_info from cache", self.mac)
414416
return False
417+
415418
return True
416419

417420
async def initialize(self) -> None:

0 commit comments

Comments
 (0)