From 113cd29f74dfaea38d2b98d58dc77857e3e53d53 Mon Sep 17 00:00:00 2001 From: estevez-dev Date: Mon, 2 Sep 2019 19:36:20 +0300 Subject: [PATCH] Resolves #431 Add default card type if not specified --- 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 a76eada..930c4f9 100644 --- a/lib/home_assistant.class.dart +++ b/lib/home_assistant.class.dart @@ -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,