maint: Roll HACS to 2.0.2

This commit is contained in:
2025-01-05 12:13:25 -08:00
parent dc3392db6f
commit 443d12c4dc
4 changed files with 11 additions and 5 deletions

View File

@@ -196,6 +196,7 @@ class HacsOptionsFlowHandler(OptionsFlow):
def __init__(self, config_entry): def __init__(self, config_entry):
"""Initialize HACS options flow.""" """Initialize HACS options flow."""
if AwesomeVersion(HAVERSION) < "2024.11.99":
self.config_entry = config_entry self.config_entry = config_entry
async def async_step_init(self, _user_input=None): async def async_step_init(self, _user_input=None):

View File

@@ -16,11 +16,11 @@
"lovelace", "lovelace",
"repairs" "repairs"
], ],
"documentation": "https://hacs.xyz/docs/configuration/start", "documentation": "https://hacs.xyz/docs/use/",
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"issue_tracker": "https://github.com/hacs/integration/issues", "issue_tracker": "https://github.com/hacs/integration/issues",
"requirements": [ "requirements": [
"aiogithubapi>=22.10.1" "aiogithubapi>=22.10.1"
], ],
"version": "2.0.1" "version": "2.0.2"
} }

View File

@@ -30,7 +30,7 @@
} }
}, },
"progress": { "progress": {
"wait_for_device": "1. Open {url} \n2. Paste the following key to authorize HACS: \n```\n{code}\n```\n" "wait_for_device": "1. Open {url} \n2. Paste the following key to authorize HACS: \n```\n{code}\n```"
} }
}, },
"options": { "options": {

View File

@@ -266,8 +266,13 @@ class HacsData:
if not repository: if not repository:
return return
# Restore repository attributes try:
self.hacs.repositories.set_repository_id(repository, entry) self.hacs.repositories.set_repository_id(repository, entry)
except ValueError as exception:
self.logger.warning("<HacsData async_restore_repository> duplicate IDs %s", exception)
return
# Restore repository attributes
repository.data.authors = repository_data.get("authors", []) repository.data.authors = repository_data.get("authors", [])
repository.data.description = repository_data.get("description", "") repository.data.description = repository_data.get("description", "")
repository.data.downloads = repository_data.get("downloads", 0) repository.data.downloads = repository_data.get("downloads", 0)