(self)
Execute the the execute methods of each runtime task if the stage matches.
Execute the the execute methods of each runtime task if the stage matches.
Execute the the execute methods of each runtime task if the stage matches .
async def async_execute_runtume_tasks(self) -> None:
        """Execute the the execute methods of each runtime task if the stage matches."""
        self.hacs.status.background_task = True
        await asyncio.gather(
            *(
                task.execute_task()
                for task in self.tasks
                if task.stages is not None and self.hacs.stage in task.stages
            )
        )
        self.hacs.status.background_task = False
async def async_execute_runtume_tasks ( self ) -> None : self . hacs . status . background_task = True await asyncio . gather ( * ( task . execute_task ( ) for task in self . tasks if task . stages is not None and self . hacs . stage in task . stages ) ) self . hacs . status . background_task = False