From 860860099e94c7c76d479b4466c4b0baf5450bd9 Mon Sep 17 00:00:00 2001 From: cdce8p <30130371+cdce8p@users.noreply.github.com> Date: Fri, 16 Mar 2018 03:38:37 +0100 Subject: [PATCH] Changed cover icon condition (#995) --- src/util/hass-util.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/hass-util.html b/src/util/hass-util.html index b6c5938e14..77d8dc4891 100644 --- a/src/util/hass-util.html +++ b/src/util/hass-util.html @@ -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';