mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-12 04:20:28 +00:00
Fade icon to grey for all entities it unavailable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user