File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ async def load(self) -> bool:
2727 """Load and activate node features."""
2828 if self ._loaded :
2929 return True
30- self ._node_info .is_battery_powered = True
3130
31+ self ._node_info .is_battery_powered = True
3232 if self ._cache_enabled :
3333 _LOGGER .debug (
3434 "Load Celsius node %s from cache" , self ._node_info .mac
3535 )
36- if await self ._load_from_cache ():
37- pass
36+ if not await self ._load_from_cache ():
37+ _LOGGER . debug ( "Loading from cache failed" )
3838
3939 self ._loaded = True
4040 self ._setup_protocol (
@@ -44,5 +44,6 @@ async def load(self) -> bool:
4444 if await self .initialize ():
4545 await self ._loaded_callback (NodeEvent .LOADED , self .mac )
4646 return True
47+
4748 _LOGGER .debug ("Load of Celsius node %s failed" , self ._node_info .mac )
4849 return False
You can’t perform that action at this time.
0 commit comments