Skip to content

Commit 6be4c4c

Browse files
committed
move self._loaded because initialize requires this to be set
1 parent 00288e1 commit 6be4c4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/sense.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ async def load(self) -> bool:
6161
SENSE_FIRMWARE_SUPPORT,
6262
(NodeFeature.INFO, NodeFeature.SENSE),
6363
)
64+
self._loaded = True
6465
if await self.initialize():
6566
await self._loaded_callback(NodeEvent.LOADED, self.mac)
66-
self._loaded = True
6767
return True
6868
_LOGGER.debug("Loading of Sense node %s failed", self._node_info.mac)
6969
return False

0 commit comments

Comments
 (0)