Update HACS

This commit is contained in:
root
2022-05-23 17:48:47 -07:00
parent 3bdb8638a8
commit 1d83dd0c31
163 changed files with 862 additions and 11844 deletions

View File

@@ -3,7 +3,7 @@ from __future__ import annotations
from typing import TYPE_CHECKING
from ..enums import HacsCategory
from ..enums import HacsCategory, HacsDispatchEvent
from ..exceptions import HacsException
from ..utils.decorator import concurrent
from .base import HacsRepository
@@ -53,7 +53,7 @@ class HacsThemeRepository(HacsRepository):
f"Repository structure for {self.ref.replace('tags/','')} is not compliant"
)
if self.data.content_in_root:
if self.repository_manifest.content_in_root:
self.content.path.remote = ""
# Handle potential errors
@@ -76,7 +76,7 @@ class HacsThemeRepository(HacsRepository):
return
# Get theme objects.
if self.data.content_in_root:
if self.repository_manifest.content_in_root:
self.content.path.remote = ""
# Update name
@@ -85,8 +85,8 @@ class HacsThemeRepository(HacsRepository):
# Signal entities to refresh
if self.data.installed:
self.hacs.hass.bus.async_fire(
"hacs/repository",
self.hacs.async_dispatch(
HacsDispatchEvent.REPOSITORY,
{
"id": 1337,
"action": "update",