Skip to content

Commit ef1deb0

Browse files
committed
Move logger before guard
1 parent 011cc29 commit ef1deb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugwise_usb/nodes/sed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,8 @@ async def schedule_task_when_awake(
662662
self, task_fn: Coroutine[Any, Any, bool]
663663
) -> None:
664664
"""Add task to queue to be executed when node is awake."""
665+
_LOGGER.debug("Add task %s to queue waiting for awake", task_fn)
665666
if iscoroutine(task_fn):
666-
_LOGGER.debug("Add task %s to queue waiting for awake", task_fn)
667667
async with self._send_task_lock:
668668
self._send_task_queue.append(task_fn)
669669

0 commit comments

Comments
 (0)