File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -786,8 +786,9 @@ async def load(self) -> bool:
786786 """Load and activate Circle node features."""
787787 if self ._loaded :
788788 return True
789+
789790 if self ._cache_enabled :
790- _LOGGER .debug ("Load Circle node %s from cache" , self ._mac_in_str )
791+ _LOGGER .debug ("Loading Circle node %s from cache" , self ._mac_in_str )
791792 if await self ._load_from_cache ():
792793 self ._loaded = True
793794 self ._setup_protocol (
@@ -803,12 +804,13 @@ async def load(self) -> bool:
803804 if await self .initialize ():
804805 await self ._loaded_callback (NodeEvent .LOADED , self .mac )
805806 return True
807+
806808 _LOGGER .debug (
807- "Load Circle node %s from cache failed" ,
809+ "Loading Circle node %s from cache failed" ,
808810 self ._mac_in_str ,
809811 )
810812 else :
811- _LOGGER .debug ("Load Circle node %s" , self ._mac_in_str )
813+ _LOGGER .debug ("Loading Circle node %s" , self ._mac_in_str )
812814
813815 # Check if node is online
814816 if not self ._available and not await self .is_online ():
@@ -828,6 +830,7 @@ async def load(self) -> bool:
828830 self ._mac_in_str ,
829831 )
830832 return False
833+
831834 self ._loaded = True
832835 self ._setup_protocol (
833836 CIRCLE_FIRMWARE_SUPPORT ,
@@ -841,6 +844,7 @@ async def load(self) -> bool:
841844 )
842845 if not await self .initialize ():
843846 return False
847+
844848 await self ._loaded_callback (NodeEvent .LOADED , self .mac )
845849 return True
846850
You can’t perform that action at this time.
0 commit comments