From 67e040ad8efba4d4721a2dc63d500e8c14685307 Mon Sep 17 00:00:00 2001 From: UnrealKazu <9115757+UnrealKazu@users.noreply.github.com> Date: Sat, 11 Nov 2017 06:48:51 +0100 Subject: [PATCH] Add filters to dev-state page (#595) * Add filter functionality for entities and states Entities and states can now be filtered by entering a string in their respective input fields. * Add filter functionality for attributes Attributes can now also be filtered. Without a colon in the search string, if any attribute's key or value matches the string, the entity is matched. If there is a colon, keys and values are matched separately, and the entity is only matched if both key and value match. * Hide attribute filter in narrow mode When the browser triggers narrow mode the attribute filter now hides properly. * Improve eslint adherence The code is now correctly linted against the HASS eslint standard. Also simplified the code which distinguished arrays from strings when matching. --- panels/dev-state/ha-panel-dev-state.html | 79 +++++++++++++++++++++++- 1 file changed, 77 insertions(+), 2 deletions(-) diff --git a/panels/dev-state/ha-panel-dev-state.html b/panels/dev-state/ha-panel-dev-state.html index 2ca2b804fb..3a2df37722 100644 --- a/panels/dev-state/ha-panel-dev-state.html +++ b/panels/dev-state/ha-panel-dev-state.html @@ -82,6 +82,14 @@ + + + + + + + No entities +