diff --git a/custom_components/hacs/repositories/base.py b/custom_components/hacs/repositories/base.py index 436c5badf17..73666d35e0e 100644 --- a/custom_components/hacs/repositories/base.py +++ b/custom_components/hacs/repositories/base.py @@ -619,7 +619,10 @@ async def download_repository_zip(self): extractable = [] for path in zip_file.filelist: filename = "/".join(path.filename.split("/")[1:]) - if filename.startswith(self.content.path.remote): + if ( + filename.startswith(self.content.path.remote) + and filename != self.content.path.remote + ): path.filename = filename.replace(self.content.path.remote, "") extractable.append(path)