From e550b0cec2d5959290ec9eed5cc74d926234ff18 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Sun, 15 Nov 2015 00:36:15 -0800 Subject: [PATCH] Remove ha-state-domain-icon --- .../entity/ha-state-domain-icon.html | 22 --------------- src/components/entity/ha-state-domain-icon.js | 28 ------------------- 2 files changed, 50 deletions(-) delete mode 100644 src/components/entity/ha-state-domain-icon.html delete mode 100644 src/components/entity/ha-state-domain-icon.js diff --git a/src/components/entity/ha-state-domain-icon.html b/src/components/entity/ha-state-domain-icon.html deleted file mode 100644 index 10244664fb..0000000000 --- a/src/components/entity/ha-state-domain-icon.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - diff --git a/src/components/entity/ha-state-domain-icon.js b/src/components/entity/ha-state-domain-icon.js deleted file mode 100644 index e03fd17f7a..0000000000 --- a/src/components/entity/ha-state-domain-icon.js +++ /dev/null @@ -1,28 +0,0 @@ -import Polymer from '../../polymer'; - -require('./domain-icon'); - -export default new Polymer({ - is: 'ha-state-domain-icon', - - properties: { - stateObj: { - type: Object, - observer: 'updateIconColor', - }, - }, - - /** - * Called when an attribute changes that influences the color of the icon. - */ - updateIconColor(newVal) { - // for domain light, set color of icon to light color if available - if (newVal.domain === 'light' && newVal.state === 'on' && - newVal.attributes.rgb_color) { - this.$.icon.style.color = 'rgb(' + newVal.attributes.rgb_color.join(',') + ')'; - } else { - this.$.icon.style.color = null; - } - }, - -});