Resolves #484 Fix entity-filter cards
This commit is contained in:
parent
85b0c4f814
commit
1262d8c9aa
@ -218,6 +218,9 @@ class HomeAssistant {
|
|||||||
try {
|
try {
|
||||||
//bool isThereCardOptionsInside = rawCard["card"] != null;
|
//bool isThereCardOptionsInside = rawCard["card"] != null;
|
||||||
var rawCardInfo = rawCard["card"] ?? rawCard;
|
var rawCardInfo = rawCard["card"] ?? rawCard;
|
||||||
|
if (rawCardInfo['state_filter'] != null) {
|
||||||
|
Logger.d("Hey!!!!!! We found a card with state filter: ${rawCardInfo['state_filter']}");
|
||||||
|
}
|
||||||
HACard card = HACard(
|
HACard card = HACard(
|
||||||
id: "card",
|
id: "card",
|
||||||
name: rawCardInfo["title"] ?? rawCardInfo["name"],
|
name: rawCardInfo["title"] ?? rawCardInfo["name"],
|
||||||
@ -226,7 +229,7 @@ class HomeAssistant {
|
|||||||
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'] ?? true,
|
||||||
stateFilter: rawCardInfo['state_filter'] ?? [],
|
stateFilter: (rawCard['state_filter'] ?? rawCardInfo['state_filter']) ?? [],
|
||||||
states: rawCardInfo['states'],
|
states: rawCardInfo['states'],
|
||||||
conditions: rawCard['conditions'] ?? [],
|
conditions: rawCard['conditions'] ?? [],
|
||||||
content: rawCardInfo['content'],
|
content: rawCardInfo['content'],
|
||||||
|
Reference in New Issue
Block a user