mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 09:16:38 +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) {
|
window.hassUtil.coverIcon = function (state) {
|
||||||
var open = state.state && state.state === 'open';
|
var open = state.state && state.state !== 'closed';
|
||||||
switch (state.attributes.device_class) {
|
switch (state.attributes.device_class) {
|
||||||
case 'garage':
|
case 'garage':
|
||||||
return open ? 'mdi:garage-open' : 'mdi:garage';
|
return open ? 'mdi:garage-open' : 'mdi:garage';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user