maint: Roll HACS to 2.0.2
This commit is contained in:
@@ -196,7 +196,8 @@ class HacsOptionsFlowHandler(OptionsFlow):
|
|||||||
|
|
||||||
def __init__(self, config_entry):
|
def __init__(self, config_entry):
|
||||||
"""Initialize HACS options flow."""
|
"""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):
|
async def async_step_init(self, _user_input=None):
|
||||||
"""Manage the options."""
|
"""Manage the options."""
|
||||||
|
|||||||
@@ -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"
|
||||||
}
|
}
|
||||||
@@ -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": {
|
||||||
|
|||||||
@@ -266,8 +266,13 @@ class HacsData:
|
|||||||
if not repository:
|
if not repository:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
|
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
|
# Restore repository attributes
|
||||||
self.hacs.repositories.set_repository_id(repository, entry)
|
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user