From 9897b6a44ba1785f6c182b6c96e6e7b1d23122c9 Mon Sep 17 00:00:00 2001 From: Yegor Vialov Date: Fri, 29 Nov 2019 10:05:09 +0000 Subject: [PATCH] Fix show_empty for entity-filter --- lib/home_assistant.class.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/home_assistant.class.dart b/lib/home_assistant.class.dart index de679f8..ff32eb1 100644 --- a/lib/home_assistant.class.dart +++ b/lib/home_assistant.class.dart @@ -225,7 +225,7 @@ class HomeAssistant { columnsCount: rawCardInfo['columns'] ?? 4, showName: rawCardInfo['show_name'] ?? true, showState: rawCardInfo['show_state'] ?? true, - showEmpty: rawCardInfo['show_empty'] ?? true, + showEmpty: (rawCardInfo['show_empty'] ?? rawCard['show_empty']) ?? true, stateFilter: (rawCard['state_filter'] ?? rawCardInfo['state_filter']) ?? [], states: rawCardInfo['states'], conditions: rawCard['conditions'] ?? [],