This commit is contained in:
Paulus Schoutsen 2017-04-30 22:53:07 -07:00
parent f255e6c7bf
commit fbc78f020b
3 changed files with 4 additions and 4 deletions

View File

@ -104,7 +104,7 @@ Polymer({
'hass-api-called': 'apiCalled', 'hass-api-called': 'apiCalled',
}, },
apiCalled: function (ev) { apiCalled: function () {
this.$.data.refresh(); this.$.data.refresh();
}, },

View File

@ -238,7 +238,7 @@ Polymer({
'hass-api-called': 'apiCalled', 'hass-api-called': 'apiCalled',
}, },
apiCalled: function (ev) { apiCalled: function () {
this.addonChanged(this.addon); this.addonChanged(this.addon);
}, },
@ -251,7 +251,7 @@ Polymer({
this.hass.callApi('get', 'hassio/addons/' + addon + '/info') this.hass.callApi('get', 'hassio/addons/' + addon + '/info')
.then(function (info) { .then(function (info) {
this.addonState = info.data; this.addonState = info.data;
}.bind(this), function (info) { }.bind(this), function () {
this.addonState = null; this.addonState = null;
}.bind(this)); }.bind(this));
this.refreshLogs(); this.refreshLogs();

View File

@ -18,7 +18,7 @@
cursor: pointer; cursor: pointer;
} }
</style> </style>
<paper-card heading="Addons"> <paper-card heading="Installed Addons">
<div class="card-content"> <div class="card-content">
<template is='dom-repeat' items='[[data]]' as='addon'> <template is='dom-repeat' items='[[data]]' as='addon'>
<paper-item> <paper-item>