(self)
Update the sensor.
Update the sensor.
Update the sensor .
async def async_update(self):
        """Update the sensor."""
        if hacs.system.status.background_task:
            return

        self.repositories = []

        for repository in hacs.repositories:
            if repository.pending_upgrade:
                self.repositories.append(repository)
        self._state = len(self.repositories)
async def async_update ( self ) : if hacs . system . status . background_task : return self . repositories = [ ] for repository in hacs . repositories : if repository . pending_upgrade : self . repositories . append ( repository ) self . _state = len ( self . repositories )