Filter out default_view

This commit is contained in:
Paulus Schoutsen 2017-01-29 23:01:44 -08:00
parent 993f136934
commit 5c1cf2a66a

View File

@ -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;
},
/*