Update packages

This commit is contained in:
Paulus Schoutsen
2016-02-07 00:13:39 -08:00
parent 374d9a0514
commit 4d3c0e6a4c
13 changed files with 28 additions and 30 deletions

View File

@@ -21,7 +21,7 @@ export default new Polymer({
if (newVal.domain === 'light' && newVal.state === 'on' &&
newVal.attributes.rgb_color &&
newVal.attributes.rgb_color.reduce((cur, tot) => cur + tot, 0) < 730) {
this.$.icon.style.color = 'rgb(' + newVal.attributes.rgb_color.join(',') + ')';
this.$.icon.style.color = `rgb(${newVal.attributes.rgb_color.join(',')})`;
} else {
this.$.icon.style.color = null;
}