diff --git a/custom_components/hacs/config_flow.py b/custom_components/hacs/config_flow.py index 6c368c6..ada9d11 100644 --- a/custom_components/hacs/config_flow.py +++ b/custom_components/hacs/config_flow.py @@ -196,7 +196,8 @@ class HacsOptionsFlowHandler(OptionsFlow): def __init__(self, config_entry): """Initialize HACS options flow.""" - self.config_entry = config_entry + if AwesomeVersion(HAVERSION) < "2024.11.99": + self.config_entry = config_entry async def async_step_init(self, _user_input=None): """Manage the options.""" diff --git a/custom_components/hacs/manifest.json b/custom_components/hacs/manifest.json index 40cfec6..23705e3 100644 --- a/custom_components/hacs/manifest.json +++ b/custom_components/hacs/manifest.json @@ -16,11 +16,11 @@ "lovelace", "repairs" ], - "documentation": "https://hacs.xyz/docs/configuration/start", + "documentation": "https://hacs.xyz/docs/use/", "iot_class": "cloud_polling", "issue_tracker": "https://github.com/hacs/integration/issues", "requirements": [ "aiogithubapi>=22.10.1" ], - "version": "2.0.1" + "version": "2.0.2" } \ No newline at end of file diff --git a/custom_components/hacs/translations/en.json b/custom_components/hacs/translations/en.json index 6385bcd..a4bed76 100644 --- a/custom_components/hacs/translations/en.json +++ b/custom_components/hacs/translations/en.json @@ -30,7 +30,7 @@ } }, "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": { diff --git a/custom_components/hacs/utils/data.py b/custom_components/hacs/utils/data.py index 7b548d9..f540272 100644 --- a/custom_components/hacs/utils/data.py +++ b/custom_components/hacs/utils/data.py @@ -266,8 +266,13 @@ class HacsData: if not repository: return + try: + self.hacs.repositories.set_repository_id(repository, entry) + except ValueError as exception: + self.logger.warning(" duplicate IDs %s", exception) + return + # Restore repository attributes - self.hacs.repositories.set_repository_id(repository, entry) repository.data.authors = repository_data.get("authors", []) repository.data.description = repository_data.get("description", "") repository.data.downloads = repository_data.get("downloads", 0)