mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Changed cover icon condition (#995)
This commit is contained in:
parent
b80c52dab2
commit
860860099e
@ -269,7 +269,7 @@ window.hassUtil.binarySensorIcon = function (state) {
|
||||
};
|
||||
|
||||
window.hassUtil.coverIcon = function (state) {
|
||||
var open = state.state && state.state === 'open';
|
||||
var open = state.state && state.state !== 'closed';
|
||||
switch (state.attributes.device_class) {
|
||||
case 'garage':
|
||||
return open ? 'mdi:garage-open' : 'mdi:garage';
|
||||
|
Loading…
x
Reference in New Issue
Block a user