mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-18 23:06:40 +00:00
Filter out default_view
This commit is contained in:
parent
993f136934
commit
5c1cf2a66a
@ -254,7 +254,14 @@ Polymer({
|
||||
},
|
||||
|
||||
computeViews: function (hass) {
|
||||
return window.HAWS.extractViews(hass.states);
|
||||
var views = window.HAWS.extractViews(hass.states);
|
||||
|
||||
// If default view present, it's in first index.
|
||||
if (views.length > 0 && views[0].entity_id === 'group.default_view') {
|
||||
views.shift();
|
||||
}
|
||||
|
||||
return views;
|
||||
},
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user