Resolves #508 show_name for enriry button card

This commit is contained in:
Yegor Vialov
2019-11-29 10:12:41 +00:00
parent 9897b6a44b
commit 890da650dc
3 changed files with 19 additions and 12 deletions

View File

@ -223,8 +223,8 @@ class HomeAssistant {
name: rawCardInfo["title"] ?? rawCardInfo["name"],
type: rawCardInfo['type'] ?? CardType.ENTITIES,
columnsCount: rawCardInfo['columns'] ?? 4,
showName: rawCardInfo['show_name'] ?? true,
showState: rawCardInfo['show_state'] ?? true,
showName: (rawCardInfo['show_name'] ?? rawCard['show_name']) ?? true,
showState: (rawCardInfo['show_state'] ?? rawCard['show_state']) ?? true,
showEmpty: (rawCardInfo['show_empty'] ?? rawCard['show_empty']) ?? true,
stateFilter: (rawCard['state_filter'] ?? rawCardInfo['state_filter']) ?? [],
states: rawCardInfo['states'],