Resolves #431 Add default card type if not specified

This commit is contained in:
estevez-dev 2019-09-02 19:36:20 +03:00
parent f2fdfb0a32
commit 113cd29f74

View File

@ -191,7 +191,7 @@ class HomeAssistant {
HACard card = HACard(
id: "card",
name: rawCardInfo["title"] ?? rawCardInfo["name"],
type: rawCardInfo['type'],
type: rawCardInfo['type'] ?? CardType.entities,
columnsCount: rawCardInfo['columns'] ?? 4,
showName: rawCardInfo['show_name'] ?? true,
showState: rawCardInfo['show_state'] ?? true,