maint: Update HACS to 2.0.5
This commit is contained in:
@@ -1 +1 @@
|
|||||||
!function(){function n(n){var e=document.createElement("script");e.src=n,document.body.appendChild(e)}if(/.*Version\/(?:11|12)(?:\.\d+)*.*Safari\//.test(navigator.userAgent))n("/hacsfiles/frontend/frontend_es5/entrypoint.W8HpFKTV-jg.js");else try{new Function("import('/hacsfiles/frontend/frontend_latest/entrypoint.3UR5SnLC394.js')")()}catch(e){n("/hacsfiles/frontend/frontend_es5/entrypoint.W8HpFKTV-jg.js")}}()
|
!function(){function n(n){var e=document.createElement("script");e.src=n,document.body.appendChild(e)}if(/.*Version\/(?:11|12)(?:\.\d+)*.*Safari\//.test(navigator.userAgent))n("/hacsfiles/frontend/frontend_es5/entrypoint.c180d0b256f9b6d0.js");else try{new Function("import('/hacsfiles/frontend/frontend_latest/entrypoint.bb9d28f38e9fba76.js')")()}catch(e){n("/hacsfiles/frontend/frontend_es5/entrypoint.c180d0b256f9b6d0.js")}}()
|
||||||
@@ -1 +1 @@
|
|||||||
VERSION="20240903140523"
|
VERSION="20250128065759"
|
||||||
@@ -22,5 +22,5 @@
|
|||||||
"requirements": [
|
"requirements": [
|
||||||
"aiogithubapi>=22.10.1"
|
"aiogithubapi>=22.10.1"
|
||||||
],
|
],
|
||||||
"version": "2.0.2"
|
"version": "2.0.5"
|
||||||
}
|
}
|
||||||
@@ -927,9 +927,6 @@ class HacsRepository:
|
|||||||
raise HacsException("repository.content.path.local is None")
|
raise HacsException("repository.content.path.local is None")
|
||||||
self.validate.errors.clear()
|
self.validate.errors.clear()
|
||||||
|
|
||||||
if not self.can_download:
|
|
||||||
raise HacsException("The version of Home Assistant is not compatible with this version")
|
|
||||||
|
|
||||||
version_to_install = version or self.version_to_download()
|
version_to_install = version or self.version_to_download()
|
||||||
if version_to_install == self.data.default_branch:
|
if version_to_install == self.data.default_branch:
|
||||||
self.ref = version_to_install
|
self.ref = version_to_install
|
||||||
|
|||||||
@@ -172,6 +172,7 @@ class HacsPluginRepository(HacsRepository):
|
|||||||
|
|
||||||
def _get_resource_handler(self) -> ResourceStorageCollection | None:
|
def _get_resource_handler(self) -> ResourceStorageCollection | None:
|
||||||
"""Get the resource handler."""
|
"""Get the resource handler."""
|
||||||
|
resources: ResourceStorageCollection | None
|
||||||
if not (hass_data := self.hacs.hass.data):
|
if not (hass_data := self.hacs.hass.data):
|
||||||
self.logger.error("%s Can not access the hass data", self.string)
|
self.logger.error("%s Can not access the hass data", self.string)
|
||||||
return
|
return
|
||||||
@@ -180,7 +181,12 @@ class HacsPluginRepository(HacsRepository):
|
|||||||
self.logger.warning("%s Can not access the lovelace integration data", self.string)
|
self.logger.warning("%s Can not access the lovelace integration data", self.string)
|
||||||
return
|
return
|
||||||
|
|
||||||
resources: ResourceStorageCollection | None = lovelace_data.get("resources")
|
if self.hacs.core.ha_version > "2025.1.99":
|
||||||
|
# Changed to 2025.2.0
|
||||||
|
# Changed in https://github.com/home-assistant/core/pull/136313
|
||||||
|
resources = lovelace_data.resources
|
||||||
|
else:
|
||||||
|
resources = lovelace_data.get("resources")
|
||||||
|
|
||||||
if resources is None:
|
if resources is None:
|
||||||
self.logger.warning("%s Can not access the dashboard resources", self.string)
|
self.logger.warning("%s Can not access the dashboard resources", self.string)
|
||||||
|
|||||||
Reference in New Issue
Block a user