File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -433,10 +433,7 @@ async def _motion_state_update(
433433 async def _run_awake_tasks (self ) -> None :
434434 """Execute all awake tasks."""
435435 await super ()._run_awake_tasks ()
436- if (
437- self ._scan_config_task_scheduled
438- and await self ._configure_scan_task ()
439- ):
436+ if self ._scan_config_task_scheduled and await self ._configure_scan_task ():
440437 self ._scan_config_task_scheduled = False
441438
442439 async def _configure_scan_task (self ) -> bool :
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ def __init__(
100100 self ._battery_config = BatteryConfig ()
101101 self ._new_battery_config = BatteryConfig ()
102102 self ._sed_config_task_scheduled = False
103- self ._sed_node_info_update_task_scheduled = False
103+ self ._sed_node_info_update_task_scheduled = False
104104
105105 self ._last_awake : dict [NodeAwakeResponseType , datetime ] = {}
106106 self ._last_awake_reason : str = "Unknown"
@@ -618,15 +618,12 @@ async def _awake_timer(self) -> None:
618618 async def _run_awake_tasks (self ) -> None :
619619 """Execute all awake tasks."""
620620 if (
621- self ._sed_node_info_update_task_scheduled
622- and await self .node_info_update (None ) is not None
621+ self ._sed_node_info_update_task_scheduled
622+ and await self .node_info_update (None ) is not None
623623 ):
624624 self ._sed_node_info_update_task_scheduled = False
625625
626- if (
627- self ._sed_config_task_scheduled
628- and await self ._configure_sed_task ()
629- ):
626+ if self ._sed_config_task_scheduled and await self ._configure_sed_task ():
630627 self ._sed_config_task_scheduled = False
631628
632629 async def sed_configure ( # pylint: disable=too-many-arguments
You can’t perform that action at this time.
0 commit comments