mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-08 09:46:29 +00:00
Fix bug
This commit is contained in:
parent
33a66bee01
commit
046ce0230a
@ -58,11 +58,11 @@ class APISupervisor(object):
|
|||||||
|
|
||||||
def _repositories_list(self):
|
def _repositories_list(self):
|
||||||
"""Return a list of addons repositories."""
|
"""Return a list of addons repositories."""
|
||||||
repositories = []
|
data = []
|
||||||
list_id = create_hash_index_list(self.config.addons_repositories)
|
list_id = create_hash_index_list(self.config.addons_repositories)
|
||||||
|
|
||||||
for repository in self.addons.list_repositories:
|
for repository in self.addons.list_repositories:
|
||||||
repository.append({
|
data.append({
|
||||||
ATTR_SLUG: repository[ATTR_SLUG],
|
ATTR_SLUG: repository[ATTR_SLUG],
|
||||||
ATTR_NAME: repository[ATTR_NAME],
|
ATTR_NAME: repository[ATTR_NAME],
|
||||||
ATTR_SOURCE: list_id.get(repository[ATTR_SLUG]),
|
ATTR_SOURCE: list_id.get(repository[ATTR_SLUG]),
|
||||||
@ -70,7 +70,7 @@ class APISupervisor(object):
|
|||||||
ATTR_MAINTAINER: repository.get(ATTR_MAINTAINER),
|
ATTR_MAINTAINER: repository.get(ATTR_MAINTAINER),
|
||||||
})
|
})
|
||||||
|
|
||||||
return repositories
|
return data
|
||||||
|
|
||||||
@api_process
|
@api_process
|
||||||
async def ping(self, request):
|
async def ping(self, request):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user