Skip to content

Commit

Permalink
Merge branch 'master' of github.com:eifinger/homeassistant-config
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger committed Oct 22, 2019
2 parents 5055f33 + 6ec5cdd commit cb89267
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 944 deletions.
3 changes: 3 additions & 0 deletions custom_components/hacs/.translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@
},
"title": "HACS (Home Assistant Community Store)"
},
"confirm": {
"delete": "¿Seguro que quieres eliminar \" {item} \"?"
},
"options": {
"step": {
"user": {
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hacs/.translations/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"common": {
"appdaemon": "AppDaemon",
"appdaemon_apps": "Приложения AppDaemon",
"background_task": "Выполняется фоновая задача, страница перезагрузится, когда все будет готово.",
"background_task": "Выполняется фоновая задача, страница перезагрузится по готовности.",
"installed": "установлено",
"integration": "Интеграция",
"integrations": "Интеграции",
Expand Down
1 change: 1 addition & 0 deletions custom_components/hacs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ async def load_hacs_repository(hacs):
repository.versions.installed = const.VERSION
repository.status.new = False
hacs.repo = repository.repository_object
hacs.data_repo = await hacs().github.get_repo("hacs/default")
except (
AIOGitHubException,
AIOGitHubRatelimit,
Expand Down
2 changes: 1 addition & 1 deletion custom_components/hacs/const.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Constants for HACS"""
NAME_LONG = "HACS (Home Assistant Community Store)"
NAME_SHORT = "HACS"
VERSION = "0.15.7"
VERSION = "0.15.9"
DOMAIN = "hacs"
PROJECT_URL = "https://github.com/custom-components/hacs/"
CUSTOM_UPDATER_LOCATIONS = [
Expand Down
938 changes: 0 additions & 938 deletions custom_components/hacs/frontend/experimental/main.js

This file was deleted.

Binary file modified custom_components/hacs/frontend/experimental/main.js.gz
Binary file not shown.
7 changes: 3 additions & 4 deletions custom_components/hacs/hacsbase/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class Hacs:
hacsapi = f"/hacsapi/{token}"
repositories = []
repo = None
data_repo = None
developer = Developer()
data = None
configuration = None
Expand Down Expand Up @@ -253,9 +254,7 @@ async def get_repositories(self):
}
else:
for category in self.common.categories:
remote = await self.repo.get_contents(
f"repositories/{category}", "data"
)
remote = await self.data_repo.get_contents(category)
repositories[category] = json.loads(remote.content)
if category == "plugin":
org = await self.github.get_org_repos("custom-cards")
Expand All @@ -281,7 +280,7 @@ async def get_repositories(self):
async def load_known_repositories(self):
"""Load known repositories."""
self.logger.info("Loading known repositories")
blacklist = await self.repo.get_contents("repositories/blacklist", "data")
blacklist = await self.data_repo.get_contents("blacklist")
repositories = await self.get_repositories()

for item in json.loads(blacklist.content):
Expand Down
Binary file modified www/community/mini-graph-card/mini-graph-card-bundle.js.gz
Binary file not shown.

0 comments on commit cb89267

Please sign in to comment.