Fix missing repository (#2420)

This commit is contained in:
Pascal Vizeli 2021-01-11 12:17:53 +01:00 committed by GitHub
parent 5a00336ef1
commit b0b908b4ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,6 +137,9 @@ class GitRepo(CoreSysAttributes):
if self.lock.locked():
_LOGGER.warning("There is already a task in progress")
return
if self.repo is None:
_LOGGER.warning("No valid repository for %s", self.url)
return
async with self.lock:
_LOGGER.info("Update add-on %s repository", self.url)