Update HACS

This commit is contained in:
root
2022-07-19 16:05:32 -07:00
parent 1970e01e48
commit 2d1e374e3a
48 changed files with 24 additions and 18 deletions

View File

@@ -619,7 +619,10 @@ class HacsRepository:
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)