Fix show_empty for entity-filter

This commit is contained in:
Yegor Vialov 2019-11-29 10:05:09 +00:00
parent 7969f54d3b
commit 9897b6a44b

View File

@ -225,7 +225,7 @@ class HomeAssistant {
columnsCount: rawCardInfo['columns'] ?? 4, columnsCount: rawCardInfo['columns'] ?? 4,
showName: rawCardInfo['show_name'] ?? true, showName: rawCardInfo['show_name'] ?? true,
showState: rawCardInfo['show_state'] ?? 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']) ?? [], stateFilter: (rawCard['state_filter'] ?? rawCardInfo['state_filter']) ?? [],
states: rawCardInfo['states'], states: rawCardInfo['states'],
conditions: rawCard['conditions'] ?? [], conditions: rawCard['conditions'] ?? [],