From 4398cb44b1b9adb58a15b6f1573dd5d74200dcb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Tue, 7 Jan 2020 20:52:41 +0100 Subject: [PATCH] Fix #29 --- src/filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter.js b/src/filter.js index 917a94e..b10ed06 100644 --- a/src/filter.js +++ b/src/filter.js @@ -80,7 +80,7 @@ export function entity_filter(hass, filter) { entityAttribute = entityAttribute[step]; } if(entityAttribute === undefined - || (v && !match(v, entityAttribute)) + || (v !== undefined && !match(v, entityAttribute)) ) return false; continue;