Remove hardcoded core repo from hassio store

This commit is contained in:
Paulus Schoutsen 2017-05-07 13:44:41 -07:00
parent cc8e3fd22b
commit 9e7dc4a921
2 changed files with 2 additions and 9 deletions

View File

@ -58,13 +58,6 @@
<script>
Polymer({
_coreRepos: [{
slug: 'core',
name: 'Built-in Add-Ons',
url: 'https://home-assistant.io/addons',
maintainer: 'Home Assistant authors',
}],
is: 'hassio-addon-store',
properties: {
@ -114,7 +107,7 @@ Polymer({
this.hass.callApi('get', 'hassio/supervisor/addons')
.then(function (info) {
this.addons = info.data.addons;
this.repos = this._coreRepos.concat(info.data.repositories);
this.repos = info.data.repositories;
}.bind(this), function () {
this.addons = [];
this.repos = [];

View File

@ -59,7 +59,7 @@ Polymer({
},
computeInstallStatus(addon) {
return addon && addon.installed || 'Not installed';
return (addon && addon.installed) || 'Not installed';
},
});
</script>