Changed cover icon condition (#995)

This commit is contained in:
cdce8p 2018-03-16 03:38:37 +01:00 committed by c727
parent b80c52dab2
commit 860860099e

View File

@ -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';