(self)
Tasks tha are started after startup.
Tasks tha are started after startup.
Tasks tha are started after startup .
async def startup_tasks(self):
        """Tasks tha are started after startup."""
        self.system.status.background_task = True
        self.logger.debug(self.github.ratelimits.remaining)
        self.logger.debug(self.github.ratelimits.reset_utc)
        await self.load_known_repositories()
        self.clear_out_blacklisted_repositories()
        self.tasks.append(
            async_track_time_interval(
                self.hass, self.recuring_tasks_installed, timedelta(minutes=30)
            )
        )
        self.tasks.append(
            async_track_time_interval(
                self.hass, self.recuring_tasks_all, timedelta(minutes=800)
            )
        )

        self.system.status.startup = False
        self.system.status.background_task = False
        self.data.write()
async def startup_tasks ( self ) : self . system . status . background_task = True self . logger . debug ( self . github . ratelimits . remaining ) self . logger . debug ( self . github . ratelimits . reset_utc ) await self . load_known_repositories ( ) self . clear_out_blacklisted_repositories ( ) self . tasks . append ( async_track_time_interval ( self . hass , self . recuring_tasks_installed , timedelta ( minutes = 30 ) ) ) self . tasks . append ( async_track_time_interval ( self . hass , self . recuring_tasks_all , timedelta ( minutes = 800 ) ) ) self . system . status . startup = False self . system . status . background_task = False self . data . write ( )