1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

change handling with arch detection

This commit is contained in:
Pascal Vizeli
2017-04-17 18:50:05 +02:00
parent c019d1f3c5
commit 2bd1636097
5 changed files with 10 additions and 11 deletions

View File

@@ -52,6 +52,7 @@ class AddonsData(Config):
super().__init__(FILE_HASSIO_ADDONS)
self.config = config
self._addons_data = {}
self.arch = None
def read_addons_repo(self):
"""Read data from addons repository."""
@@ -195,7 +196,7 @@ class AddonsData(Config):
"""Return image name of addon."""
if ATTR_IMAGE not in self._addons_data[addon]:
return "{}/{}-addon-{}".format(
DOCKER_REPO, self.config.hassio_arch, self.get_slug(addon))
DOCKER_REPO, self.arch, self.get_slug(addon))
return self._addons_data[addon][ATTR_IMAGE]