Fade icon to grey for all entities it unavailable

This commit is contained in:
William Scanlon
2016-03-04 13:48:38 -05:00
parent 6dd7d9d158
commit c95e7dae4a
3 changed files with 10 additions and 3 deletions

View File

@@ -59,7 +59,8 @@ export default new Polymer({
computeIsOn(stateObj) {
return stateObj && stateObj.state !== 'off' &&
stateObj.state !== 'unlocked' && stateObj.state !== 'closed';
stateObj.state !== 'unlocked' && stateObj.state !== 'closed' &&
stateObj.state !== 'unavailable';
},
// We call updateToggle after a successful call to re-sync the toggle